Prittier printing of snapshots (#1190)

This uses a custom snapshot serializer to reduce escaping in snapshot files and
make them easier to read.

Snapshot serializers are documented here:
https://facebook.github.io/jest/docs/configuration.html#snapshotserializers-array-string
This commit is contained in:
Jan Kassens authored and Christopher Chedeau committed 2017-04-12 13:41:51 -07:00
1 parent 8e1583fd16
commit b82220b20f
501 files changed
+9018 -8994

No files matched your search

@@ -1,10 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`foo.js 1`] = `
"var x = require('bar.js');
var x = require('bar.js');
console.log(x);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
var x = require(\\"bar.js\\");
var x = require("bar.js");
console.log(x);
"
`;