Skip to content

Commit ed419d6

Browse files
authored
🤖 TEST: Add tsd test (#22)
1 parent d3c8a31 commit ed419d6

File tree

3 files changed

+14
-28
lines changed

3 files changed

+14
-28
lines changed

‎.autod.conf.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎index.test-d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { expectType } from 'tsd';
2+
import { Application } from 'egg';
3+
import '.';
4+
5+
const app = new Application();
6+
7+
expectType<Promise<object>>(app.mysql.get('table', {}));

‎package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,27 @@
2323
"ali-rds": "^3.4.0"
2424
},
2525
"devDependencies": {
26-
"autod": "^3.1.2",
27-
"egg": "^2.35.0",
28-
"egg-bin": "^4.19.0",
26+
"egg": "^3.5.0",
27+
"egg-bin": "^5.5.0",
2928
"egg-ci": "^2.1.0",
30-
"egg-mock": "^4.2.1",
29+
"egg-mock": "^5.2.1",
3130
"eslint": "^8.16.0",
32-
"eslint-config-egg": "^11.1.0",
31+
"eslint-config-egg": "^12.1.0",
3332
"git-contributor": "^1.0.10",
33+
"tsd": "^0.25.0",
3434
"utility": "^1.17.0"
3535
},
3636
"engines": {
3737
"node": ">=14.0.0"
3838
},
3939
"scripts": {
4040
"contributor": "git-contributor",
41+
"tsd": "tsd",
4142
"test": "npm run lint -- --fix && npm run test-local",
4243
"test-local": "egg-bin test",
4344
"cov": "egg-bin cov",
4445
"lint": "eslint .",
45-
"ci": "npm run lint && npm run cov",
46-
"autod": "autod"
46+
"ci": "npm run lint && npm run cov"
4747
},
4848
"ci": {
4949
"version": "14, 16, 18",

0 commit comments

Comments
 (0)