increase vitest timeout

This commit is contained in:
swithek 2026-08-17 17:24:38 +02:00
parent 6928029077
commit 31880de871
2 changed files with 11 additions and 0 deletions

View File

@ -283,6 +283,12 @@ it.for([
### Mocks & path coverage
- **Every exported function is covered by unit tests** — a module's
exports are its testable contract, and none of them ships untested.
Modules with no exports whose evaluation wires things up (entry
points like `electron/main.ts` and `electron/preload.ts`) are tested
through their module side effects: mock the boundaries, import the
module, assert the wiring.
- **Every path gets a test** — the success path and each failure path,
including one per collaborator that can fail, especially in unit tests.
A `describe` per method groups them; the linear `it`s are the rows,

View File

@ -97,6 +97,11 @@ export default defineConfig({
...sharedTestOptions,
name: "nuxt",
environment: "nuxt",
// @nuxt/test-utils boots the whole nuxt runtime in a
// beforeAll hook before the first .nuxt.test.ts file; on
// cold CI runners that routinely exceeds the 10s default
// and fails the suite before any test runs
hookTimeout: 60_000,
include: ["app/**/*.nuxt.test.ts"],
environmentOptions: {
nuxt: {