Skip to content

Commit 5b157d4

Browse files
committed
fix(test): update jest config to work properely with react and react hooks
testing-library/react-hooks-testing-library#294
1 parent d2e8b0e commit 5b157d4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

jest.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ module.exports = {
6666
// maxWorkers: "50%",
6767

6868
// An array of directory names to be searched recursively up from the requiring module's location
69-
// moduleDirectories: [
70-
// "node_modules"
71-
// ],
69+
moduleDirectories: ['node_modules', '<rootDir>/../node_modules', '.'],
7270

7371
// An array of file extensions your modules use
7472
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],
@@ -81,8 +79,6 @@ module.exports = {
8179
'^@fm/store$': '<rootDir>/renderer/store',
8280
},
8381

84-
moduleDirectories: ['.', 'src', 'node_modules'],
85-
8682
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
8783
// modulePathIgnorePatterns: [],
8884

0 commit comments

Comments
 (0)