Skip to content

Commit 4961e97

Browse files
committed
feat: add moduleDirectories to jest config
1 parent 6ce5817 commit 4961e97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/config/jest.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ const jestConfig = {
2323
),
2424
testURL: 'http://localhost',
2525
moduleFileExtensions: ['js', 'jsx', 'json', 'ts', 'tsx'],
26+
moduleDirectories: [
27+
'node_modules',
28+
fromRoot('src'),
29+
'shared',
30+
fromRoot('tests'),
31+
],
2632
collectCoverageFrom: ['src/**/*.+(js|jsx|ts|tsx)'],
2733
testMatch: ['**/__tests__/**/*.+(js|jsx|ts|tsx)'],
2834
testPathIgnorePatterns: [...ignores],

0 commit comments

Comments
 (0)