Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions integration_tests/__tests__/__snapshots__/failures-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Object {
"rest": " FAIL __tests__/throw-number-test.js
● Test suite failed to run

Expected an Error, but \"1\" was thrown
Expected an Error, but \\"1\\" was thrown

",
"summary": "Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching \"throw-number-test.js\".
Ran all test suites matching \\"throw-number-test.js\\".
",
}
`;
Expand All @@ -28,7 +28,7 @@ Object {
Tests: 0 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching \"throw-string-test.js\".
Ran all test suites matching \\"throw-string-test.js\\".
",
}
`;
Expand All @@ -45,7 +45,7 @@ Object {
Tests: 0 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching \"throw-object-test.js\".
Ran all test suites matching \\"throw-object-test.js\\".
",
}
`;
Expand Down Expand Up @@ -97,7 +97,7 @@ Object {
Tests: 3 failed, 3 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching \"assertion-count-test.js\".
Ran all test suites matching \\"assertion-count-test.js\\".
",
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ exports[`Snapshot serializers renders snapshot 1`] = `
Object {
"snapshot serializers works with default serializers 1": "
<div
id="foo" />
id=\\"foo\\" />
",
"snapshot serializers works with first plugin 1": "foo: 1",
"snapshot serializers works with nested serializable objects 1": "foo: bar: 2",
"snapshot serializers works with prepended plugins and default serializers 1": "
<div
aProp={
Object {
"a": 6,
\\"a\\": 6,
}
}
bProp={foo: 8} />
Expand Down
14 changes: 7 additions & 7 deletions integration_tests/__tests__/__snapshots__/snapshot-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ exports[`Snapshot works with escaped characters 1`] = `
Tests: 1 passed, 1 total
Snapshots: 1 added, 1 total
Time: <<REPLACED>>
Ran all test suites matching \"snapshot-test.js\".
Ran all test suites matching \\"snapshot-test.js\\".
"
`;

Expand All @@ -75,7 +75,7 @@ exports[`Snapshot works with escaped characters 2`] = `
Tests: 2 passed, 2 total
Snapshots: 1 added, 1 passed, 2 total
Time: <<REPLACED>>
Ran all test suites matching \"snapshot-test.js\".
Ran all test suites matching \\"snapshot-test.js\\".
"
`;

Expand All @@ -84,7 +84,7 @@ exports[`Snapshot works with escaped characters 3`] = `
Tests: 2 passed, 2 total
Snapshots: 2 passed, 2 total
Time: <<REPLACED>>
Ran all test suites matching \"snapshot-test.js\".
Ran all test suites matching \\"snapshot-test.js\\".
"
`;

Expand All @@ -93,7 +93,7 @@ exports[`Snapshot works with escaped regex 1`] = `
Tests: 2 passed, 2 total
Snapshots: 2 added, 2 total
Time: <<REPLACED>>
Ran all test suites matching \"snapshot-escape-regex.js\".
Ran all test suites matching \\"snapshot-escape-regex.js\\".
"
`;

Expand All @@ -102,7 +102,7 @@ exports[`Snapshot works with escaped regex 2`] = `
Tests: 2 passed, 2 total
Snapshots: 2 passed, 2 total
Time: <<REPLACED>>
Ran all test suites matching \"snapshot-escape-regex.js\".
Ran all test suites matching \\"snapshot-escape-regex.js\\".
"
`;

Expand All @@ -111,7 +111,7 @@ exports[`Snapshot works with template literal subsitutions 1`] = `
Tests: 1 passed, 1 total
Snapshots: 1 added, 1 total
Time: <<REPLACED>>
Ran all test suites matching \"snapshot-escape-substitution-test.js\".
Ran all test suites matching \\"snapshot-escape-substitution-test.js\\".
"
`;

Expand All @@ -120,6 +120,6 @@ exports[`Snapshot works with template literal subsitutions 2`] = `
Tests: 1 passed, 1 total
Snapshots: 1 passed, 1 total
Time: <<REPLACED>>
Ran all test suites matching \"snapshot-escape-substitution-test.js\".
Ran all test suites matching \\"snapshot-escape-substitution-test.js\\".
"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ exports[`Stack Trace does not print a stack trace for errors when --noStackTrace
Tests: 3 failed, 3 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching \"test-error-test.js\".
Ran all test suites matching \\"test-error-test.js\\".
"
`;

Expand All @@ -12,7 +12,7 @@ exports[`Stack Trace does not print a stack trace for matching errors when --noS
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching \"stack-trace-test.js\".
Ran all test suites matching \\"stack-trace-test.js\\".
"
`;

Expand All @@ -21,7 +21,7 @@ exports[`Stack Trace does not print a stack trace for runtime errors when --noSt
Tests: 0 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching \"runtime-error-test.js\".
Ran all test suites matching \\"runtime-error-test.js\\".
"
`;

Expand All @@ -30,7 +30,7 @@ exports[`Stack Trace prints a stack trace for errors 1`] = `
Tests: 3 failed, 3 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching \"test-error-test.js\".
Ran all test suites matching \\"test-error-test.js\\".
"
`;

Expand All @@ -39,7 +39,7 @@ exports[`Stack Trace prints a stack trace for matching errors 1`] = `
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching \"stack-trace-test.js\".
Ran all test suites matching \\"stack-trace-test.js\\".
"
`;

Expand All @@ -48,6 +48,6 @@ exports[`Stack Trace prints a stack trace for runtime errors 1`] = `
Tests: 0 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching \"runtime-error-test.js\".
Ran all test suites matching \\"runtime-error-test.js\\".
"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ exports[`test testNamePattern 1`] = `
Tests: 2 skipped, 2 passed, 4 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites with tests matching \"should match\".
Ran all test suites with tests matching \\"should match\\".
"
`;
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
exports[`Upgrade help logs a warning when \`scriptPreprocessor\` and/or \`preprocessorIgnorePatterns\` are used 1`] = `
"● Deprecation Warning:

Option \"preprocessorIgnorePatterns\" was replaced by \"transformIgnorePatterns\", which support multiple preprocessors.
Option \\"preprocessorIgnorePatterns\\" was replaced by \\"transformIgnorePatterns\\", which support multiple preprocessors.

Jest now treats your current configuration as:
{
\"transformIgnorePatterns\": [\"bar/baz\", \"qux/quux\"]
\\"transformIgnorePatterns\\": [\\"bar/baz\\", \\"qux/quux\\"]
}

Please update your configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Printing internal object structure without calling \`toJSON\` instead.
+ Received

  Object {
-  \"line\": 1,
+  \"line\": 2,
   \"toJSON\": [Function toJSON],
-  \\"line\\": 1,
+  \\"line\\": 2,
   \\"toJSON\\": [Function toJSON],
  }"
`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
exports[`.stringify() reduces maxDepth if stringifying very large objects 1`] = `"{\"a\": 1, \"b\": [Object]}"`;
exports[`.stringify() reduces maxDepth if stringifying very large objects 1`] = `"{\\"a\\": 1, \\"b\\": [Object]}"`;

exports[`.stringify() reduces maxDepth if stringifying very large objects 2`] = `"{\"a\": 1, \"b\": {\"0\": \"test\", \"1\": \"test\", \"2\": \"test\", \"3\": \"test\", \"4\": \"test\", \"5\": \"test\", \"6\": \"test\", \"7\": \"test\", \"8\": \"test\", \"9\": \"test\"}}"`;
exports[`.stringify() reduces maxDepth if stringifying very large objects 2`] = `"{\\"a\\": 1, \\"b\\": {\\"0\\": \\"test\\", \\"1\\": \\"test\\", \\"2\\": \\"test\\", \\"3\\": \\"test\\", \\"4\\": \\"test\\", \\"5\\": \\"test\\", \\"6\\": \\"test\\", \\"7\\": \\"test\\", \\"8\\": \\"test\\", \\"9\\": \\"test\\"}}"`;

exports[`.stringify() toJSON errors when comparing two objects 1`] = `
"expect(received).toEqual(expected)

Expected value to equal:
{\"b\": 1, \"toJSON\": [Function toJSON]}
{\\"b\\": 1, \\"toJSON\\": [Function toJSON]}
Received:
{\"a\": 1, \"toJSON\": [Function toJSON]}
{\\"a\\": 1, \\"toJSON\\": [Function toJSON]}

Difference:

- Expected
+ Received

 Object {
- \"b\": 1,
+ \"a\": 1,
 \"toJSON\": [Function toJSON],
- \\"b\\": 1,
+ \\"a\\": 1,
 \\"toJSON\\": [Function toJSON],
 }"
`;
Loading