From 106bd6cb4c3d781dc685a4ab60cab8b03ad80e15 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Sat, 24 Aug 2024 15:56:14 +0200 Subject: [PATCH] Add ignore pattern & use correct transform patter --- jest.config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jest.config.js b/jest.config.js index d8ae6c0..14c44a7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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,