diff --git a/package.json b/package.json index 533f177..2813857 100644 --- a/package.json +++ b/package.json @@ -94,15 +94,15 @@ "testEnvironment": "node", "testURL": "http://localhost", "transform": { - ".+\\.(js|jsx|mjs)$": "/node_modules/babel-jest", - ".+\\.css$": "/config/jest/cssTransform.js", - "(?!.*\\.(js|jsx|mjs|css|json)$)": "/config/jest/fileTransform.js" + "^.+\\.(js|jsx|mjs)$": "/node_modules/babel-jest", + "^.+\\.css$": "/config/jest/cssTransform.js", + "^(?!.*\\.(js|jsx|mjs|css|json)$)": "/config/jest/fileTransform.js" }, "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$" ], "moduleNameMapper": { - "react-native$": "react-native-web" + "^react-native$": "react-native-web" }, "moduleFileExtensions": [ "web.js",