mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-15 12:09:32 +08:00
committed by
Dan Abramov
parent
2b5eb82c11
commit
dcdcab0ecc
@@ -11,7 +11,7 @@ module.exports = (resolve, rootDir) => {
|
||||
const config = {
|
||||
automock: false,
|
||||
moduleNameMapper: {
|
||||
'^[./a-zA-Z0-9$_-]+\\.(jpg|png|gif|eot|otf|svg|ttf|woff|woff2|mp4|webm)$': resolve('config/jest/FileStub.js'),
|
||||
'^[./a-zA-Z0-9$_-]+\\.(jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': resolve('config/jest/FileStub.js'),
|
||||
'^[./a-zA-Z0-9$_-]+\\.css$': resolve('config/jest/CSSStub.js')
|
||||
},
|
||||
persistModuleRegistryBetweenSpecs: true,
|
||||
|
||||
Reference in New Issue
Block a user