diff --git a/integrations/vite/index.test.ts b/integrations/vite/index.test.ts index f89cb274f..f37940c2f 100644 --- a/integrations/vite/index.test.ts +++ b/integrations/vite/index.test.ts @@ -317,21 +317,20 @@ import { await fs.expectFileToContain(filename, [candidate`underline`, candidate`flex`]) - await new Promise((resolve) => setTimeout(resolve, 1000)) - - // Updates are additive and cause new candidates to be added. - await fs.write( - 'project-a/index.html', - html` - - - - -
Hello, world!
- - `, - ) await retryAssertion(async () => { + // Updates are additive and cause new candidates to be added. + await fs.write( + 'project-a/index.html', + html` + + + + +
Hello, world!
+ + `, + ) + let files = await fs.glob('project-a/dist/**/*.css') expect(files).toHaveLength(1) let [, css] = files[0]