We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54fac8f commit 52d458bCopy full SHA for 52d458b
src/runner/browser-env/vite/utils.ts
@@ -45,9 +45,17 @@ export const getTestInfoFromViteRequest = (req: Connect.IncomingMessage): TestIn
45
return null;
46
}
47
48
+ if (req.originalUrl && req.originalUrl.endsWith("devtools.json")) {
49
+ return null;
50
+ }
51
+
52
const parsedUrl = url.parse(req.originalUrl);
53
const [routeName, runUuid] = _.compact(parsedUrl.pathname?.split("/"));
54
55
+ if (runUuid?.endsWith(".map")) {
56
57
58
59
if (routeName !== VITE_RUN_UUID_ROUTE || !runUuid) {
60
throw new Error(`Pathname must be in "/${VITE_RUN_UUID_ROUTE}/:uuid" format, but got: ${req.originalUrl}`);
61
0 commit comments