Commit b064ddc
test: unify assertSnapshot common patterns
Unifes assertSnapshot common patterns like platform specific path
separators, line ending, line trailing spaces, Node.js version strings,
and pids in warning messages.
PR-URL: #61590
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>1 parent d147c08 commit b064ddcCopy full SHA for b064ddc
100 files changed
+850-665Lines changed: 850 additions & 665 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- test
- common
- fixtures
- console
- errors
- eval
- source-map/output
- test-runner/output
- v8
- vm
- parallel
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
Open diff view settings
Collapse file
test/common/assertSnapshot.js
Copy file name to clipboardExpand all lines: test/common/assertSnapshot.js+57-12Lines changed: 57 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
10 | 11 | |
11 | 12 | |
| 13 | + |
| 14 | + |
| 15 | + |
12 | 16 | |
13 | | - |
| 17 | + |
14 | 18 | |
15 | 19 | |
16 | 20 | |
| ||
23 | 27 | |
24 | 28 | |
25 | 29 | |
| 30 | + |
| 31 | + |
26 | 32 | |
27 | 33 | |
28 | 34 | |
29 | 35 | |
| 36 | + |
| 37 | + |
30 | 38 | |
31 | 39 | |
32 | 40 | |
33 | 41 | |
34 | | - |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
35 | 62 | |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
36 | 67 | |
37 | | - |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
38 | 73 | |
39 | 74 | |
40 | 75 | |
| ||
152 | 187 | |
153 | 188 | |
154 | 189 | |
155 | | - |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
156 | 195 | |
157 | | - |
| 196 | + |
158 | 197 | |
159 | | - |
160 | 198 | |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
161 | 208 | |
162 | 209 | |
163 | 210 | |
164 | 211 | |
165 | 212 | |
166 | | - |
| 213 | + |
167 | 214 | |
168 | | - |
169 | 215 | |
170 | 216 | |
171 | 217 | |
172 | | - |
| 218 | + |
173 | 219 | |
174 | | - |
175 | 220 | |
176 | 221 | |
177 | | - |
| 222 | + |
178 | 223 | |
179 | 224 | |
180 | | - |
181 | 225 | |
182 | 226 | |
183 | 227 | |
| ||
204 | 248 | |
205 | 249 | |
206 | 250 | |
| 251 | + |
207 | 252 | |
208 | 253 | |
209 | 254 | |
|
Collapse file
test/fixtures/console/stack_overflow.snapshot
Copy file name to clipboard+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
| 2 | + |
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
| 8 | + |
Collapse file
test/fixtures/errors/async_error_eval_esm.snapshot
Copy file name to clipboard+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
7 | 7 | |
Collapse file
test/fixtures/errors/async_error_microtask_main.snapshot
Copy file name to clipboard+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
Collapse file
test/fixtures/errors/async_error_nexttick_main.snapshot
Copy file name to clipboard+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
Collapse file
test/fixtures/errors/async_error_sync_esm.snapshot
Copy file name to clipboard+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
Collapse file
test/fixtures/errors/async_error_sync_main.snapshot
Copy file name to clipboard+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
Collapse file
test/fixtures/errors/core_line_numbers.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/errors/core_line_numbers.snapshot+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
| 8 | + |
9 | 9 | |
10 | | - |
| 10 | + |
Collapse file
test/fixtures/errors/error_aggregateTwoErrors.snapshot
Copy file name to clipboard+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
| 6 | + |
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
| 14 | + |
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
| 20 | + |
Collapse file
test/fixtures/errors/error_exit.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/errors/error_exit.snapshot+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
11 | 11 | |
12 | 12 | |
13 | 13 | |
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
0 commit comments