CARVIEW |
Select Language
HTTP/2 200
date: Fri, 10 Oct 2025 18:49:00 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/karma-runner/karma.git
etag: W/"2542b45f78860b2a54f57f514aaf5dc1"
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 github.githubassets.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 wss://alive-staging.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 marketplace-screenshots.githubusercontent.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=efqkfl6jRtttcLIZMke0YGEoEvrVGAfTF1fou%2BixrzIdGO9zPEWKAf1v6nRzh15Jkw7tlsf7lFKABAO6BQKUDii3C6obNIvBU73FWgq5QPLO8LOcCsM%2FxbxpcLoVfPqloyPWP3WhEOVLZzuC5oCHIi4nPL%2B3ukzKyFVW97AJ2cyIaC7NuD%2BObb4P4UpvQLHHLExWOM8qSiU4ygTe47tSPCBLcVmtv2bBedooFEXfosTTdZsu4JfmD8CY2WEe5Pvf80NwvH6YUymxtw6kWNc89Q%3D%3D--osBDoxXc%2FGbXhM%2Fu--SyxdjrccL7Kz52CTpwph%2Bw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1889147380.1760122140; Path=/; Domain=github.com; Expires=Sat, 10 Oct 2026 18:49:00 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 10 Oct 2026 18:49:00 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C646:160A71:1FE2A:296A7:68E9551C
feat(reporter): improve source map handling and reporting. · karma-runner/karma@cf0be47 · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit cf0be47
committed
feat(reporter): improve source map handling and reporting.
- Avoid prepending basepath to every file path.
The original path is usually relative to the project, and much more meaningful
than basepath + path, which is usually a long, absolute path.
- Format as [mapped location] <- [original location]
The mapped location is the more important part for users, it's the source
file they are working on.
- Resolve source map file paths relative to the original file path.
It's common for tools that generate a source map to not have a complete
understanding of what paths they should generate, in which case they just use
the local path. An example tool is TypeScript.
Resolving the path against the original file path makes these paths
unambiguous in the project.1 parent 9a972b1 commit cf0be47Copy full SHA for cf0be47
File tree
Expand file treeCollapse file tree
2 files changed
+38
-20
lines changedFilter options
- lib
- test/unit
Expand file treeCollapse file tree
2 files changed
+38
-20
lines changedCollapse file: lib/reporter.js
+9-8Lines changed: 9 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
| |||
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
26 |
| - | |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
| 57 | + | |
| 58 | + | |
61 | 59 |
| |
62 | 60 |
| |
63 | 61 |
| |
| |||
72 | 70 |
| |
73 | 71 |
| |
74 | 72 |
| |
| 73 | + | |
| 74 | + | |
| 75 | + | |
75 | 76 |
| |
76 |
| - | |
77 |
| - | |
| 77 | + | |
| 78 | + | |
78 | 79 |
| |
79 | 80 |
| |
80 | 81 |
| |
|
Collapse file: test/unit/reporter.spec.js
+29-12Lines changed: 29 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
| 54 | + | |
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
| 68 | + | |
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
| 93 | + | |
93 | 94 |
| |
94 | 95 |
| |
95 | 96 |
| |
96 |
| - | |
| 97 | + | |
97 | 98 |
| |
98 | 99 |
| |
99 | 100 |
| |
| |||
112 | 113 |
| |
113 | 114 |
| |
114 | 115 |
| |
| 116 | + | |
115 | 117 |
| |
116 | 118 |
| |
117 | 119 |
| |
| |||
127 | 129 |
| |
128 | 130 |
| |
129 | 131 |
| |
130 |
| - | |
| 132 | + | |
131 | 133 |
| |
132 | 134 |
| |
133 | 135 |
| |
| |||
142 | 144 |
| |
143 | 145 |
| |
144 | 146 |
| |
145 |
| - | |
| 147 | + | |
146 | 148 |
| |
147 | 149 |
| |
148 | 150 |
| |
| |||
157 | 159 |
| |
158 | 160 |
| |
159 | 161 |
| |
160 |
| - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
161 | 178 |
| |
162 | 179 |
| |
163 | 180 |
| |
| |||
172 | 189 |
| |
173 | 190 |
| |
174 | 191 |
| |
175 |
| - | |
| 192 | + | |
176 | 193 |
| |
177 | 194 |
| |
178 | 195 |
| |
| |||
187 | 204 |
| |
188 | 205 |
| |
189 | 206 |
| |
190 |
| - | |
| 207 | + | |
191 | 208 |
| |
192 | 209 |
| |
193 | 210 |
| |
| |||
208 | 225 |
| |
209 | 226 |
| |
210 | 227 |
| |
211 |
| - | |
| 228 | + | |
212 | 229 |
| |
213 | 230 |
| |
214 | 231 |
| |
| |||
218 | 235 |
| |
219 | 236 |
| |
220 | 237 |
| |
221 |
| - | |
| 238 | + | |
222 | 239 |
| |
223 | 240 |
| |
224 | 241 |
| |
|
You can’t perform that action at this time.
0 commit comments