Skip to content

Commit 882d6f8

Browse files
committed
add tsconfig.test.json and adjust lint/jest
1 parent 92813ba commit 882d6f8

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

packages/replay/.eslintrc.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,17 @@ module.exports = {
6868
},
6969
},
7070
{
71-
files: ['jest.setup.ts'],
71+
files: ['jest.setup.ts', 'jest.config.ts'],
72+
parserOptions: {
73+
project: ['tsconfig.test.json'],
74+
},
7275
rules: {
7376
'no-console': 'off',
7477
},
7578
},
7679
{
7780
files: ['test/**/*.ts'],
78-
parserOptions: {
79-
// TODO: remove this parserOptions object after we added a tsconfig.test.json
80-
// Replay previously didn't have a tsconfig.test.json, so for now we just the regular one.
81-
project: ['tsconfig.json'],
82-
},
81+
8382
rules: {
8483
// TODO: decide if we want to keep our '@test' import paths
8584
'import/no-unresolved': 'off',

packages/replay/tsconfig.test.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
4+
"include": ["test/**/*.ts", "jest.config.ts", "jest.setup.ts"],
5+
6+
"compilerOptions": {
7+
"types": ["node", "jest"]
8+
}
9+
}

0 commit comments

Comments
 (0)