Skip to content

Commit 3f5d574

Browse files
author
rocketraccoon
committed
fix: fix test path/url
1 parent 99acb5a commit 3f5d574

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/runner/browser-env/vite/utils.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@ export const getTestInfoFromViteRequest = (req: Connect.IncomingMessage): TestIn
5454
);
5555
}
5656

57-
return { routeName, runUuid, env };
57+
return {
58+
routeName,
59+
runUuid,
60+
env: {
61+
...env,
62+
file: path.join("/", path.relative(process.cwd(), env.file)),
63+
},
64+
};
5865
};
5966

6067
export const getPathWithoutExtName = (fsPath: string): string => {

0 commit comments

Comments
 (0)