Skip to content

Commit 46ebc2d

Browse files
authored
tests(jest): Fix __mocks__ location (#164)
1 parent 2f3b1e9 commit 46ebc2d

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = {
2222

2323
// Root directory for tests
2424
rootDir: '.',
25+
roots: [ '<rootDir>', '<rootDir>/tests/js' ],
2526

2627
// Test setup files run after Jest environment is set up
2728
setupFilesAfterEnv: [
File renamed without changes.

tests/js/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"types": [ "jest", "node", "@testing-library/jest-dom" ]
88
},
99
"include": [
10-
"./*.ts",
11-
"./*.tsx",
10+
"./**/*.ts",
11+
"./**/*.tsx",
1212
"../../assets/src/**/*.ts",
1313
"../../assets/src/**/*.tsx"
1414
],

0 commit comments

Comments
 (0)