Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tsconfig.typecheck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"composite": false,
"incremental": false,
"noEmit": true
},
"include": ["packages/ai/src/**/*"],
"exclude": ["**/dist", "**/node_modules"]
}
7 changes: 7 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ export default defineConfig({
envDir: __dirname,
test: {
setupFiles: ["./vitest.setup.ts"],
// The nightly type-drift guard runs `.test-d.ts` files through vitest's
// `--typecheck` engine. Scope the tsc program to the package under test so
// unrelated source (example UIs needing `jsx`, providers relying on their
// own ambient `types`/`lib`) is not swept in and reported as drift.
typecheck: {
tsconfig: "./tsconfig.typecheck.json",
},
testTimeout: 15000, // 15 second global timeout (WASM Postgres / PGlite init can be slow)
// Vitest uses hookTimeout for beforeEach/afterAll separately from testTimeout; keep both aligned
hookTimeout: 15000,
Expand Down
Loading