mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-10-30 09:16:55 +00:00
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.
30 lines
799 B
TypeScript
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 },
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|