import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { globals: true, environment: 'node', pool: 'forks', // Use forks instead of threads to support process.chdir() include: ['src/**/*.test.ts', 'tests/**/*.test.ts'], coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], include: ['src/**/*.ts'], exclude: ['src/**/*.test.ts', 'src/nopy.cli.ts'], }, }, });