From c731046c775f484959f33859488bbf98ccbd5dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Sun, 22 Nov 2026 05:13:34 +0000 Subject: [PATCH] test(studio): Chrome-driven tests run alone after the unit tests (#8440) * test(studio): Chrome-driven tests run alone after the unit tests A Chrome started beside the unit tests on a CI runner missed its launch window twice and failed the gsapSoftReloadWait suite. The browser project runs one file at a time after the unit project, as the engine already does. * test(studio): name the Chrome test pattern once in the split * test(studio): the Chrome test split names its pattern as literals the reachability check reads --- packages/studio/vitest.config.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/studio/vitest.config.ts b/packages/studio/vitest.config.ts index 426e821ec7..b66235faed 100644 --- a/packages/studio/vitest.config.ts +++ b/packages/studio/vitest.config.ts @@ -1,9 +1,27 @@ import { defineConfig, mergeConfig } from "vitest/config"; import viteConfig from "./vite.config"; +// A Chrome started beside the unit tests on a busy runner can miss its launch window, so these run alone, after. export default mergeConfig( viteConfig, defineConfig({ esbuild: { define: { "import.meta.hot": "undefined" } }, + test: { + projects: [ + { + extends: true, + test: { name: "unit", exclude: ["**/*.browser.test.ts"], sequence: { groupOrder: 1 } }, + }, + { + extends: true, + test: { + name: "browser", + include: ["**/*.browser.test.ts"], + fileParallelism: false, + sequence: { groupOrder: 2 }, + }, + }, + ], + }, }), );