chore: extract jest snapshot serializers (#5034)

This commit is contained in:
Ika authored and GitHub committed 2018-09-01 12:11:19 +08:00
1 parent 2e8366a84e
commit 55e620bdc7
6 files changed
+22 -50

No files matched your search

+2 -2
View File
@@ -13,8 +13,8 @@ const isOldNode = semver.parse(process.version).major <= 4;
module.exports = {
setupFiles: ["<rootDir>/tests_config/run_spec.js"],
snapshotSerializers: [
"<rootDir>/tests_config/raw-serializer.js",
"<rootDir>/tests_config/ansi-serializer.js"
"jest-snapshot-serializer-raw",
"jest-snapshot-serializer-ansi"
],
testRegex: "jsfmt\\.spec\\.js$|__tests__/.*\\.js$",
testPathIgnorePatterns: ["tests/new_react", "tests/more_react"].concat(