Skip to content

Commit c535608

Browse files
committed
Make tests their own TypeScript project
1 parent e31bac4 commit c535608

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports = {
106106
'prettier/@typescript-eslint',
107107
],
108108
parserOptions: {
109-
project: ['./tsconfig.json', './packages/*/tsconfig.json'],
109+
project: ['./tsconfig.test.json', './packages/*/tsconfig.json'],
110110
tsconfigRootDir: __dirname,
111111
},
112112
plugins: ['@typescript-eslint'],

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
coverage
55
node_modules
66
tsconfig.tsbuildinfo
7+
tsconfig.test.tsbuildinfo
78
/packages/*/DISCLAIMER-WIP
89
/packages/*/LICENSE
910
/packages/*/NOTICE

tsconfig.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"extends": "./tsconfig.base.json",
3-
"include": [
4-
"test/**/*",
5-
"packages/*/test/**/*",
6-
],
2+
"files": [],
73
"references": [
84
{ "path": "packages/apache-annotator" },
95
{ "path": "packages/dom" },
10-
{ "path": "packages/selector" }
6+
{ "path": "packages/selector" },
7+
{ "path": "tsconfig.test.json"}
118
]
129
}

tsconfig.test.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"include": ["test", "packages/*/test"],
4+
"references": [
5+
{ "path": "packages/dom" },
6+
{ "path": "packages/selector" }
7+
]
8+
}

0 commit comments

Comments
 (0)