Add tests for Map components
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
bd285f8ee5
commit
fc52d5ae3c
13
packages/learn/jest.config.js
Normal file
13
packages/learn/jest.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
moduleNameMapper: {
|
||||
"\\.(jpg|jpeg|png|svg|woff|woff2)$": "<rootDir>/src/__mocks__/fileMock.js",
|
||||
// Plain CSS - match css files that don't end with '.module.css' https://regex101.com/r/VzwrKH/4
|
||||
"^(?!.*\\.module\\.css$).*\\.css$": "<rootDir>/src/__mocks__/styleMock.js",
|
||||
// CSS Modules - match files that end with 'module.css'
|
||||
"\\.module\\.css$": "identity-obj-proxy" // CSS modules
|
||||
},
|
||||
testPathIgnorePatterns: ["/node_modules/", "<rootDir>/.cache/"],
|
||||
globals: {
|
||||
__PATH_PREFIX__: ""
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user