forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapshot.test.ts.snap
More file actions
137 lines (120 loc) · 4.01 KB
/
snapshot.test.ts.snap
File metadata and controls
137 lines (120 loc) · 4.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Snapshot Validation deletes a snapshot when a test does removes all the snapshots 1`] = `
Test Suites: 3 passed, 3 total
Tests: 9 passed, 9 total
Snapshots: 9 written, 9 total
Time: <<REPLACED>>
Ran all test suites.
`;
exports[`Snapshot Validation deletes a snapshot when a test does removes all the snapshots 2`] = `
Test Suites: 3 passed, 3 total
Tests: 6 passed, 6 total
Snapshots: 1 file removed, 5 passed, 5 total
Time: <<REPLACED>>
Ran all test suites.
`;
exports[`Snapshot Validation deletes the snapshot if the test suite has been removed 1`] = `
Test Suites: 3 passed, 3 total
Tests: 9 passed, 9 total
Snapshots: 9 written, 9 total
Time: <<REPLACED>>
Ran all test suites.
`;
exports[`Snapshot Validation deletes the snapshot if the test suite has been removed 2`] = `
Test Suites: 2 passed, 2 total
Tests: 5 passed, 5 total
Snapshots: 1 file removed, 5 passed, 5 total
Time: <<REPLACED>>
Ran all test suites.
`;
exports[`Snapshot Validation does not save snapshots in CI mode by default 1`] = `
Test Suites: 3 failed, 3 total
Tests: 7 failed, 2 passed, 9 total
Snapshots: 9 failed, 9 total
Time: <<REPLACED>>
Ran all test suites.
`;
exports[`Snapshot Validation updates the snapshot when a test removes some snapshots 1`] = `
Test Suites: 3 passed, 3 total
Tests: 9 passed, 9 total
Snapshots: 9 written, 9 total
Time: <<REPLACED>>
Ran all test suites.
`;
exports[`Snapshot Validation updates the snapshot when a test removes some snapshots 2`] = `
Test Suites: 3 passed, 3 total
Tests: 9 passed, 9 total
Snapshots: 1 removed, 1 updated, 7 passed, 8 total
Time: <<REPLACED>>
Ran all test suites.
`;
exports[`Snapshot Validation works on subsequent runs without \`-u\` 1`] = `
Test Suites: 3 passed, 3 total
Tests: 9 passed, 9 total
Snapshots: 9 written, 9 total
Time: <<REPLACED>>
Ran all test suites.
`;
exports[`Snapshot Validation works on subsequent runs without \`-u\` 2`] = `
Test Suites: 3 passed, 3 total
Tests: 9 passed, 9 total
Snapshots: 9 passed, 9 total
Time: <<REPLACED>>
Ran all test suites.
`;
exports[`Snapshot stores new snapshots on the first run 1`] = `
Test Suites: 2 passed, 2 total
Tests: 5 passed, 5 total
Snapshots: 5 written, 5 total
Time: <<REPLACED>>
Ran all test suites.
`;
exports[`Snapshot works with escaped characters 1`] = `
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 1 written, 1 total
Time: <<REPLACED>>
Ran all test suites matching /snapshot.test.js/i.
`;
exports[`Snapshot works with escaped characters 2`] = `
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 1 written, 1 passed, 2 total
Time: <<REPLACED>>
Ran all test suites matching /snapshot.test.js/i.
`;
exports[`Snapshot works with escaped characters 3`] = `
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 2 passed, 2 total
Time: <<REPLACED>>
Ran all test suites matching /snapshot.test.js/i.
`;
exports[`Snapshot works with escaped regex 1`] = `
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 2 written, 2 total
Time: <<REPLACED>>
Ran all test suites matching /snapshotEscapeRegex.js/i.
`;
exports[`Snapshot works with escaped regex 2`] = `
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 2 passed, 2 total
Time: <<REPLACED>>
Ran all test suites matching /snapshotEscapeRegex.js/i.
`;
exports[`Snapshot works with template literal substitutions 1`] = `
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 1 written, 1 total
Time: <<REPLACED>>
Ran all test suites matching /snapshotEscapeSubstitution.test.js/i.
`;
exports[`Snapshot works with template literal substitutions 2`] = `
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 1 passed, 1 total
Time: <<REPLACED>>
Ran all test suites matching /snapshotEscapeSubstitution.test.js/i.
`;