mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-25 08:32:45 +00:00
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:
@@ -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 },
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user