mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore: rename mockfiles in jest config (#49318)
This commit is contained in:
committed by
GitHub
parent
96a5699c39
commit
0f4fd9d57b
+2
-2
@@ -2,11 +2,11 @@ module.exports = {
|
||||
testPathIgnorePatterns: ['/node_modules/'],
|
||||
moduleNameMapper: {
|
||||
'\\.(jpg|jpeg|png|svg|woff|woff2)$':
|
||||
'<rootDir>/client/src/__mocks__/fileMock.ts',
|
||||
'<rootDir>/client/src/__mocks__/file-mock.ts',
|
||||
// Plain CSS - match css files that don't end with
|
||||
// '.module.css' https://regex101.com/r/VzwrKH/4
|
||||
'^(?!.*\\.module\\.css$).*\\.css$':
|
||||
'<rootDir>/client/src/__mocks__/styleMock.ts',
|
||||
'<rootDir>/client/src/__mocks__/style-mock.ts',
|
||||
// CSS Modules - match files that end with 'module.css'
|
||||
'\\.module\\.css$': 'identity-obj-proxy',
|
||||
'^lodash-es$': 'lodash'
|
||||
|
||||
Reference in New Issue
Block a user