git.fiddlerwoaroof.com
Browse code

fix jest tests

Ed Langley authored on 08/06/2019 18:52:12
Showing 1 changed files
... ...
@@ -87,23 +87,15 @@
87 87
     ]
88 88
   },
89 89
   "jest": {
90
+    "testEnvironment": "jsdom",
91
+    "testURL": "http://localhost",
90 92
     "collectCoverageFrom": [
91 93
       "src/**/*.js",
92 94
       "!src/**/*.d.ts"
93 95
     ],
94
-    "resolver": "jest-pnp-resolver",
95
-    "setupFiles": [
96
-      "react-app-polyfill/jsdom"
97
-    ],
98 96
     "testMatch": [
99 97
       "<rootDir>/src/**/tests/*.test.js"
100 98
     ],
101
-    "testEnvironment": "jsdom",
102
-    "testURL": "http://localhost",
103
-    "transform": {
104
-      "^.+\\.js$": "<rootDir>/node_modules/babel-jest",
105
-      "^(?!.*\\.js$)": "<rootDir>/config/jest/fileTransform.js"
106
-    },
107 99
     "transformIgnorePatterns": [
108 100
       "[/\\\\]node_modules[/\\\\].+\\.js$"
109 101
     ],