We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitest-dev
sheremet-va
antfu
patak-dev
Learn more about funding links in repositories.
Report abuse
1 parent 8294811 commit 20c510cCopy full SHA for 20c510c
packages/browser/src/client/main.ts
@@ -71,6 +71,10 @@ ws.addEventListener('open', async () => {
71
72
let hasSnapshot = false
73
async function runTests(paths: string[], config: any, client: VitestClient) {
74
+ // need to import it before any other import, otherwise Vite optimizer will hang
75
+ const viteClientPath = '/@vite/client'
76
+ await import(viteClientPath)
77
+
78
// we use dynamic import here, because this file is bundled with UI,
79
// but we need to resolve correct path at runtime
80
const path = '/__vitest_index__'
0 commit comments