From 65e835b933cfde2846ebebe9113b41df93f20b96 Mon Sep 17 00:00:00 2001 From: Mark Dalgleish Date: Fri, 3 Jan 2025 09:34:33 +1100 Subject: [PATCH] Add wait to test --- integration/vite-route-exports-modified-offscreen-test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integration/vite-route-exports-modified-offscreen-test.ts b/integration/vite-route-exports-modified-offscreen-test.ts index 66e0737b1eb..836e344319b 100644 --- a/integration/vite-route-exports-modified-offscreen-test.ts +++ b/integration/vite-route-exports-modified-offscreen-test.ts @@ -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.