Skip to content

Commit

Permalink
first test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jul 7, 2024
1 parent d7bf421 commit 9f66f32
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
File renamed without changes.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"@arethetypeswrong/cli": "^0.15.3",
"@eggjs/tsconfig": "1",
"@types/koa-bodyparser": "^4.3.12",
"@types/mocha": "^10.0.7",
"@types/ms": "^0.7.34",
"@types/node": "20",
"address": "2",
Expand Down Expand Up @@ -117,6 +118,10 @@
"require": "./dist/commonjs"
}
},
"files": [
"dist",
"src"
],
"type": "module",
"tshy": {
"exports": {
Expand Down
6 changes: 2 additions & 4 deletions test/index.test.js → test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict';

const assert = require('assert');
const egg = require('..');
import { strict as assert } from 'node:assert';
import * as egg from '../src/index.js';

describe('test/index.test.js', () => {
it('should expose properties', () => {
Expand Down
18 changes: 5 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
{
"extends": "@eggjs/tsconfig",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"inlineSources": true,
"jsx": "react",
"module": "nodenext",
"moduleResolution": "nodenext",
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "es2022"
"noImplicitAny": true,
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext"
}
}

0 comments on commit 9f66f32

Please sign in to comment.