Skip to content

Commit 89857b8

Browse files
committed
Update typetest setup to actually check files correctly
1 parent 8622b18 commit 89857b8

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"prepare": "yarn clean && yarn build",
3737
"pretest": "yarn lint",
3838
"test": "jest",
39-
"type-tests": "yarn tsc -p test/typetests",
39+
"type-tests": "yarn tsc -p test/typetests/tsconfig.json",
4040
"coverage": "codecov"
4141
},
4242
"peerDependencies": {

test/tsconfig.test.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
2-
"extends": "../tsconfig.json",
32
"compilerOptions": {
43
"allowSyntheticDefaultImports": true,
54
"esModuleInterop": true,
65
"module": "esnext",
76
"moduleResolution": "node",
87
"emitDeclarationOnly": false,
8+
"declaration": false,
99
"strict": true,
1010
"noEmit": true,
1111
"target": "es2018",
1212
"jsx": "react",
1313
"baseUrl": ".",
1414
"skipLibCheck": true,
15-
"noImplicitReturns": false
15+
"noImplicitReturns": false,
16+
"experimentalDecorators": true,
1617
}
1718
}

test/typetests/tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"extends": "../tsconfig.test.json"
2+
"extends": "../tsconfig.test.json",
3+
"compilerOptions": {
4+
},
5+
"include": ["./*.ts*"],
6+
"exclude": []
37
}

0 commit comments

Comments
 (0)