Add ignore pattern & use correct transform patter
This commit is contained in:
parent
040193a3ed
commit
106bd6cb4c
1 changed files with 5 additions and 5 deletions
|
|
@ -168,13 +168,13 @@ module.exports = {
|
|||
|
||||
// A map from regular expressions to paths to transformers
|
||||
transform: {
|
||||
"^.+\\.[t|j]sx?$": "babel-jest"
|
||||
}
|
||||
"^.+\\.[js|jsx]s?$": "babel-jest"
|
||||
},
|
||||
|
||||
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
|
||||
// transformIgnorePatterns: [
|
||||
// "/node_modules/"
|
||||
// ],
|
||||
transformIgnorePatterns: [
|
||||
"/node_modules/"
|
||||
],
|
||||
|
||||
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
|
||||
// unmockedModulePathPatterns: undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue