Files
hyperframes/packages/engine/vitest.config.ts
Miguel Ángel c391b50163 test(engine): the test Chrome warms its first page in beforeAll; browser hooks get 30 s (#6568)
A first page of a fresh Chrome stalled past vitest's 10 s hook limit on a contended Windows runner and failed the first test of its file. The first page is now opened inside beforeAll, with the launch and first-page times logged, and the browser project's hooks get the 30 s the CLI's Chrome project uses.
2026-10-27 15:49:13 +00:00

30 lines
799 B
TypeScript

import { defineConfig } from "vitest/config";
// Tests that drive a real Chrome run alone, after everything else: a Chrome sharing the
// runner with the ffmpeg tests got starved past vitest's hook limit on 4-core Windows.
export default defineConfig({
test: {
projects: [
{
extends: true,
test: {
name: "unit",
include: ["src/**/*.test.ts"],
exclude: ["**/node_modules/**", "**/dist/**", "src/**/*.browser.test.ts"],
sequence: { groupOrder: 1 },
},
},
{
extends: true,
test: {
name: "browser",
include: ["src/**/*.browser.test.ts"],
hookTimeout: 30_000,
fileParallelism: false,
sequence: { groupOrder: 2 },
},
},
],
},
});