We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8182ff commit 6538969Copy full SHA for 6538969
jest.config.js renamed to jest.config.cjs
@@ -8,6 +8,12 @@ const customJestConfig = {
8
moduleDirectories: ['node_modules', '<rootDir>/'],
9
testEnvironment: 'jest-environment-jsdom',
10
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
11
+ moduleNameMapper: {
12
+ // Handle module aliases (this will be automatically configured for you soon)
13
+ '^@components/(.*)$': '<rootDir>/components/$1',
14
+ '^@pages/(.*)$': '<rootDir>/pages/$1',
15
+ '^@lib/(.*)$': '<rootDir>/lib/$1',
16
+ },
17
}
18
19
module.exports = createJestConfig(customJestConfig)
0 commit comments