Add ignore pattern & use correct transform patter

This commit is contained in:
Sonny Bakker 2024-08-24 15:56:14 +02:00
parent 040193a3ed
commit 106bd6cb4c

View file

@ -168,13 +168,13 @@ module.exports = {
// A map from regular expressions to paths to transformers // A map from regular expressions to paths to transformers
transform: { 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 // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [ transformIgnorePatterns: [
// "/node_modules/" "/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 // 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, // unmockedModulePathPatterns: undefined,