Skip to content

Commit

Permalink
Add wait to test
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Jan 2, 2025
1 parent 7106265 commit 65e835b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration/vite-route-exports-modified-offscreen-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ test.describe(async () => {
return contents.replace(/export const loader.*/, "");
});

// Wait enough time for the manifest to be updated via HMR
await new Promise((resolve) => setTimeout(resolve, 200));

// After browser reload, client should be aware that there's no loader on the other route
if (browserName === "webkit") {
// Force new page instance for webkit.
Expand Down

0 comments on commit 65e835b

Please sign in to comment.