import { defineConfig } from "vitest/config"; export default defineConfig({ test: { globals: false, environment: "node", pool: "forks", include: [ "src/**/*.test.ts", "tests/**/*.test.ts", ], exclude: [ "src/**/*.wasm.test.ts", "src/__benchmarks__/**", "benchmarks/**", "e2e/**", "dist/**", "node_modules/**", ], server: { deps: { // Allow bun:* builtins to pass through to the native runtime external: [/^bun:/], }, }, coverage: { provider: "istanbul", reporter: ["text", "html", "lcov"], include: ["src/**/*.ts"], exclude: [ "src/**/*.test.ts", "src/**/*.bench.ts", "src/**/*.types.ts", "src/**/index.ts", "src/__benchmarks__/**", "src/__tests__/**", "src/conformance/**", "src/drivers/wasm-worker.ts", "tests/**", ], thresholds: { statements: 100, branches: 100, functions: 100, lines: 100, }, }, testTimeout: 5000, }, });