Files
freeCodeCamp/jest.config.js
2025-09-22 18:20:41 +05:30

33 lines
803 B
JavaScript

module.exports = {
testPathIgnorePatterns: [
'/node_modules/',
'api/',
'e2e/',
'tools/challenge-helper-scripts/',
'tools/challenge-parser/',
'tools/scripts/build/',
'tools/scripts/lint/',
'shared',
'curriculum',
'client',
'shared/'
],
moduleNameMapper: {
// CSS Modules - match files that end with 'module.css'
'\\.module\\.css$': 'identity-obj-proxy',
'^lodash-es$': 'lodash'
},
globals: {
__PATH_PREFIX__: ''
},
verbose: true,
transform: {
'^.+\\.[jt]sx?$': '<rootDir>/jest.transform.js'
},
roots: ['.', './client'],
transformIgnorePatterns: ['node_modules/.pnpm/(?!(nanoid|uuid)@)'],
setupFilesAfterEnv: ['./jest.setup.js'],
testEnvironment: 'jsdom',
watchPathIgnorePatterns: ['<rootDir>/__fixtures__.*']
};