From 08ca6991758862d2571b9156578d8542f7c3ea2d Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Wed, 24 Sep 2025 11:03:28 +0530 Subject: [PATCH] test: use global timeouts in static data hmr tests --- __tests__/e2e/data-loading/data.test.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/__tests__/e2e/data-loading/data.test.ts b/__tests__/e2e/data-loading/data.test.ts index fafc403a..21cfa061 100644 --- a/__tests__/e2e/data-loading/data.test.ts +++ b/__tests__/e2e/data-loading/data.test.ts @@ -52,9 +52,7 @@ describe('static data file support in vite 3', () => { await page.waitForFunction( () => document.querySelector('pre#basic')?.textContent === - JSON.stringify([{ a: false }, { b: true }], null, 2), - undefined, - { timeout: 3000 } + JSON.stringify([{ a: false }, { b: true }], null, 2) ) } finally { await fs.writeFile(a, JSON.stringify({ a: true }, null, 2) + '\n') @@ -67,9 +65,7 @@ describe('static data file support in vite 3', () => { await page.waitForFunction( () => document.querySelector('pre#basic')?.textContent === - JSON.stringify([{ a: true }], null, 2), - undefined, - { timeout: 3000 } + JSON.stringify([{ a: true }], null, 2) ) err = false } finally { @@ -83,9 +79,7 @@ describe('static data file support in vite 3', () => { await page.waitForFunction( () => document.querySelector('pre#basic')?.textContent === - JSON.stringify([{ a: true }, { b: false }], null, 2), - undefined, - { timeout: 3000 } + JSON.stringify([{ a: true }, { b: false }], null, 2) ) } finally { await fs.writeFile(b, JSON.stringify({ b: true }, null, 2) + '\n')