[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

chore: fix browser build plugin (#6793)

authored by

Joaquín Sánchez and committed by
GitHub
(Oct 26, 2024, 10:12 AM +0900) 03a77030 2a0e5aa9

+2 -1
+2 -1
packages/browser/src/client/vite.config.ts
··· 42 42 ) 43 43 44 44 const ui = resolve(root, 'ui/dist/client') 45 + const uiEntryPoint = resolve(ui, 'index.html') 45 46 const browser = resolve(root, 'browser/dist/client/__vitest__/') 46 47 47 48 const timeout = setTimeout( 48 49 () => console.log('[copy-ui-plugin] Waiting for UI to be built...'), 49 50 1000, 50 51 ) 51 - await waitFor(() => fs.existsSync(ui)) 52 + await waitFor(() => fs.existsSync(ui) && fs.existsSync(uiEntryPoint)) 52 53 clearTimeout(timeout) 53 54 54 55 const files = globSync(['**/*'], { cwd: ui, expandDirectories: false })