-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
081bdd5
commit 00e596b
Showing
23 changed files
with
899 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
integration_tests/__tests__/__snapshots__/snapshot-test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
exports[`Snapshot Validation deletes a snapshot when a test does removes all the snapshots 1`] = ` | ||
"suites: 3 passed (3 total) | ||
tests: 7 passed (7 total) | ||
snapshots: 7 added, 0 passed (7 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Snapshot Validation deletes a snapshot when a test does removes all the snapshots 2`] = ` | ||
"suites: 3 passed (3 total) | ||
tests: 5 passed (5 total) | ||
snapshots: 4 passed (4 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Snapshot Validation deletes the snapshot if the test file has been removed 1`] = ` | ||
"suites: 3 passed (3 total) | ||
tests: 7 passed (7 total) | ||
snapshots: 7 added, 0 passed (7 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Snapshot Validation deletes the snapshot if the test file has been removed 2`] = ` | ||
"suites: 2 passed (2 total) | ||
tests: 4 passed (4 total) | ||
snapshots: 4 passed (4 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Snapshot Validation updates the snapshot when a test removes some snapshots 1`] = ` | ||
"suites: 3 passed (3 total) | ||
tests: 7 passed (7 total) | ||
snapshots: 7 added, 0 passed (7 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Snapshot Validation updates the snapshot when a test removes some snapshots 2`] = ` | ||
"suites: 3 passed (3 total) | ||
tests: 7 passed (7 total) | ||
snapshots: 1 updated, 5 passed (6 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Snapshot works as expected 1`] = ` | ||
"suites: 2 passed (2 total) | ||
tests: 4 passed (4 total) | ||
snapshots: 4 added, 0 passed (4 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Snapshot works with escaped characters 1`] = ` | ||
"suites: 1 passed (1 total) | ||
tests: 1 passed (1 total) | ||
snapshots: 1 added, 0 passed (1 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Snapshot works with escaped characters 2`] = ` | ||
"suites: 1 passed (1 total) | ||
tests: 2 passed (2 total) | ||
snapshots: 1 added, 1 passed (2 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Snapshot works with escaped characters 3`] = ` | ||
"suites: 1 passed (1 total) | ||
tests: 2 passed (2 total) | ||
snapshots: 2 passed (2 total) | ||
time: <<REPLACED>> | ||
" | ||
`; |
47 changes: 47 additions & 0 deletions
47
integration_tests/__tests__/__snapshots__/stack_trace-test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
exports[`Stack Trace does not print a stack trace for errors when --noStackTrace is given 1`] = ` | ||
"suites: 1 failed, 1 passed (1 total) | ||
tests: 3 failed, 0 passed (3 total) | ||
snapshots: 0 passed (0 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Stack Trace does not print a stack trace for matching errors when --noStackTrace is given 1`] = ` | ||
"suites: 1 failed, 1 passed (1 total) | ||
tests: 1 failed, 0 passed (1 total) | ||
snapshots: 0 passed (0 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Stack Trace does not print a stack trace for runtime errors when --noStackTrace is given 1`] = ` | ||
"suites: 1 failed, 0 passed (1 total) | ||
tests: 0 passed (0 total) | ||
snapshots: 0 passed (0 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Stack Trace prints a stack trace for errors 1`] = ` | ||
"suites: 1 failed, 1 passed (1 total) | ||
tests: 3 failed, 0 passed (3 total) | ||
snapshots: 0 passed (0 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Stack Trace prints a stack trace for matching errors 1`] = ` | ||
"suites: 1 failed, 1 passed (1 total) | ||
tests: 1 failed, 0 passed (1 total) | ||
snapshots: 0 passed (0 total) | ||
time: <<REPLACED>> | ||
" | ||
`; | ||
exports[`Stack Trace prints a stack trace for runtime errors 1`] = ` | ||
"suites: 1 failed, 0 passed (1 total) | ||
tests: 0 passed (0 total) | ||
snapshots: 0 passed (0 total) | ||
time: <<REPLACED>> | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.