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
This commit is contained in:
Miguel Ángel
2026-11-22 05:13:34 +00:00
committed by GitHub
parent 59ea053f10
commit c731046c77
+18
View File
@@ -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 },
},
},
],
},
}),
);