migrate certain files in __mocks__/ (#45071)
* change ref from styleMock.js to .ts * change ref from fileMock.js to .ts
This commit is contained in:
committed by
GitHub
parent
ee0fb44c62
commit
22acd4894d
@ -2,11 +2,11 @@ module.exports = {
|
||||
testPathIgnorePatterns: ['/node_modules/'],
|
||||
moduleNameMapper: {
|
||||
'\\.(jpg|jpeg|png|svg|woff|woff2)$':
|
||||
'<rootDir>/client/src/__mocks__/fileMock.js',
|
||||
'<rootDir>/client/src/__mocks__/fileMock.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.js',
|
||||
'<rootDir>/client/src/__mocks__/styleMock.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