Fix Enzyme configuration
In a CRA project, the default Enzyme configuration is named src/setupTests.js (or .ts if the project uses TypeScript).
Seto Elkahfi committed
Jan 31, 2020 at 18:03 UTC
2f97f061356a910a03892e43ffc924d215d47f06
2 files changed
+1
-2
jest.config.js
+1
-2
@@ -5,6 +5,5 @@ module.exports = {
5
},
6
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
7
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
8
- snapshotSerializers: ["enzyme-to-json/serializer"],
9
- setupTestFrameworkScriptFile: "<rootDir>/src/setupEnzyme.ts"
8
+ snapshotSerializers: ["enzyme-to-json/serializer"]
9
}
\ No newline at end of file