-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
22 lines (21 loc) · 792 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
22 lines (21 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defineConfig } from 'vitest/config';
/**
* One config, shared by every project in the workspace.
*
* Vitest resolves `include` against the directory it runs in, and a package run
* by `pnpm -r run test` inherits this file. So `tests/**` means each package's
* own `tests/` when run there, and the root `tests/` — which holds only
* end-to-end suites — when run from the repository root.
*
* Package tests import their own code from `../src`; the end-to-end suites
* import workspace packages by name, resolving through pnpm's symlinks against
* built output, so they exercise the real published entry points.
*/
export default defineConfig({
test: {
include: ['tests/**/*.test.ts'],
testTimeout: 30_000,
hookTimeout: 30_000,
pool: 'forks',
},
});