forked from openai/openai-agents-js
-
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) · 870 Bytes
/
vitest.config.ts
File metadata and controls
22 lines (21 loc) · 870 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';
export default defineConfig({
test: {
projects: ['packages/*'],
globalSetup: './helpers/tests/setup.ts',
// Enable code coverage reporting with Vitest's built‑in integration. We
// only enable it for the monorepo packages (workspaces) so that the
// initial report focuses on our public libraries and avoids unnecessary
// noise from docs and examples.
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'json'],
all: true,
// Only include source files from the published packages. This keeps the
// metrics meaningful and prevents Vitest from trying to instrument node
// dependencies or the compiled dist folder.
include: ['packages/**/src/**/*.ts'],
exclude: ['**/*.d.ts', 'packages/**/test/**', 'packages/**/dist/**'],
},
},
});