CARVIEW |
Select Language
HTTP/2 200
date: Mon, 21 Jul 2025 15:15:38 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/nodejs/node.git
etag: W/"6f9cbb55af234c56262d70ce7075599d"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=lIZ15kLfddF5SqWIzN%2B7XlYQqilZ90vu82laQJoSavyLcYwE1cSWMGiWzgZhLYYeK0kvaxCSCgIXt4gDX%2FisgQZP9vFW%2BzdyFBIFPk9LPAr%2BMudajOixVvItQACjXFmasl%2B6PkG%2F8xHXv%2Bl636UJHoSk4B5ERLMB19u2JlXpRJFuN5sO2tro48GdOCg5jHwBGj%2Ff3aIoC5JiNTtj1ISLGoY5xRHtKb2GW7rKwNfu3N2lQ3aL5WssPn3yFoO8e%2FStQRbcxdLvygxRPFNPbcy2Hw%3D%3D--YTViWUpYSPnyh%2Fdl--LZoYIY2WkjLPh6P3Ach%2BpA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1290261341.1753110937; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 15:15:37 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 15:15:37 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: BAB0:CBA44:33635:3BF60:687E5999
test_runner: refactor snapshots to get file from context · nodejs/node@6ad6e01 · GitHub
Copy file name to clipboardExpand all lines: lib/internal/test_runner/snapshot.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/test.js
Copy file name to clipboard
Copy file name to clipboardExpand all lines: test/fixtures/test-runner/snapshots/unit.js
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Commit 6ad6e01
test_runner: refactor snapshots to get file from context
This commit refactors the internals of snapshot tests to get the
name of the test file from the test context instead of passing
it to the SnapshotManager constructor. This is prep work for
supporting running test files in the test runner process.
PR-URL: #53853
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>1 parent 698e44f commit 6ad6e01Copy full SHA for 6ad6e01
File tree
Expand file treeCollapse file tree
5 files changed
+171
-143
lines changedFilter options
- lib/internal/test_runner
- test
- fixtures/test-runner/snapshots
- parallel
Expand file treeCollapse file tree
5 files changed
+171
-143
lines changedlib/internal/test_runner/snapshot.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/snapshot.js+72-63Lines changed: 72 additions & 63 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
65 | 64 |
| |
66 | 65 |
| |
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 |
| - | |
| 66 | + | |
105 | 67 |
| |
106 | 68 |
| |
107 | 69 |
| |
| |||
122 | 84 |
| |
123 | 85 |
| |
124 | 86 |
| |
125 |
| - | |
126 | 87 |
| |
127 | 88 |
| |
128 | 89 |
| |
129 | 90 |
| |
130 |
| - | |
| 91 | + | |
131 | 92 |
| |
132 | 93 |
| |
133 | 94 |
| |
| |||
164 | 125 |
| |
165 | 126 |
| |
166 | 127 |
| |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
| 128 | + | |
173 | 129 |
| |
174 | 130 |
| |
175 | 131 |
| |
| |||
186 | 142 |
| |
187 | 143 |
| |
188 | 144 |
| |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
189 | 205 |
| |
190 | 206 |
| |
191 | 207 |
| |
192 | 208 |
| |
193 | 209 |
| |
194 | 210 |
| |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 | 211 |
| |
203 |
| - | |
204 | 212 |
| |
205 | 213 |
| |
206 | 214 |
| |
207 |
| - | |
208 | 215 |
| |
209 |
| - | |
| 216 | + | |
| 217 | + | |
210 | 218 |
| |
| 219 | + | |
211 | 220 |
| |
212 | 221 |
| |
213 |
| - | |
| 222 | + | |
214 | 223 |
| |
215 |
| - | |
216 |
| - | |
| 224 | + | |
| 225 | + | |
217 | 226 |
| |
218 | 227 |
| |
219 | 228 |
| |
|
lib/internal/test_runner/test.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/test.js+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
136 |
| - | |
| 136 | + | |
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
| |||
977 | 977 |
| |
978 | 978 |
| |
979 | 979 |
| |
980 |
| - | |
| 980 | + | |
981 | 981 |
| |
982 | 982 |
| |
983 | 983 |
| |
|
test/fixtures/test-runner/snapshots/imported-tests.js
Copy file name to clipboard+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + |
test/fixtures/test-runner/snapshots/unit.js
Copy file name to clipboardExpand all lines: test/fixtures/test-runner/snapshots/unit.js+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
| 30 | + |
You can’t perform that action at this time.
0 commit comments