diff --git a/src/config/jest.config.js b/src/config/jest.config.js index 7f61a69d..e6354a2e 100644 --- a/src/config/jest.config.js +++ b/src/config/jest.config.js @@ -23,6 +23,12 @@ const jestConfig = { ), testURL: 'http://localhost', moduleFileExtensions: ['js', 'jsx', 'json', 'ts', 'tsx'], + moduleDirectories: [ + 'node_modules', + fromRoot('src'), + 'shared', + fromRoot('tests'), + ], collectCoverageFrom: ['src/**/*.+(js|jsx|ts|tsx)'], testMatch: ['**/__tests__/**/*.+(js|jsx|ts|tsx)'], testPathIgnorePatterns: [...ignores],