From b5a1e60563726600affde0ad61b38ce9fb84a9d7 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Sun, 18 Oct 2026 09:05:08 +0200 Subject: [PATCH] test(app): pre-bundle the JSX dev runtime for browser tests Compiling test JSX with the automatic runtime imports react/jsx-dev-runtime. Vite discovered it mid-run on a cold cache and reloaded the page, which failed the first browser test file to import it. --- packages/app/vitest.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/app/vitest.config.ts b/packages/app/vitest.config.ts index cfafa0da93..ee8c58a0ec 100644 --- a/packages/app/vitest.config.ts +++ b/packages/app/vitest.config.ts @@ -82,6 +82,7 @@ export default defineConfig({ // Bundle the CJS dependencies of the excluded gesture-handler package for the browser. include: [ "react/jsx-runtime", + "react/jsx-dev-runtime", "react-native-gesture-handler > hoist-non-react-statics", "react-native-gesture-handler > invariant", ],