Skip to content

Commit caeecb5

Browse files
committed
add tsconfig.test.json and adjust lint/jest
1 parent ada7ab7 commit caeecb5

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
@@ -70,18 +70,17 @@ module.exports = {
7070
},
7171
},
7272
{
73-
files: ['jest.setup.ts'],
73+
files: ['jest.setup.ts', 'jest.config.ts'],
74+
parserOptions: {
75+
project: ['tsconfig.test.json'],
76+
},
7477
rules: {
7578
'no-console': 'off',
7679
},
7780
},
7881
{
7982
files: ['test/**/*.ts'],
80-
parserOptions: {
81-
// TODO: remove this parserOptions object after we added a tsconfig.test.json
82-
// Replay previously didn't have a tsconfig.test.json, so for now we just the regular one.
83-
project: ['tsconfig.json'],
84-
},
83+
8584
rules: {
8685
// TODO: decide if we want to keep our '@test' import paths
8786
'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)