mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
33 lines
803 B
JavaScript
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__.*']
|
|
};
|