mirror of
https://github.com/oxynote/oxynote.git
synced 2026-10-17 10:59:20 +02:00
increase vitest timeout
This commit is contained in:
parent
6928029077
commit
31880de871
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user