Skip to content

Commit

Permalink
chore: fix watcher in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 4, 2024
1 parent 2793ced commit 0660f52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/node/ssr/runtime/__tests__/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export async function createTestClient(
...config,
})
t.runtime = await createViteRuntime(t.server)
await waitForWatcher(t.server)
if (config.server?.watch) {
await waitForWatcher(t.server)
}
t.stderr = () => getLogs().stderr
t.stdout = () => getLogs().stdout
})
Expand Down

0 comments on commit 0660f52

Please sign in to comment.