/// import { defineConfig } from 'vitest/config'; import sharedConfig from '@blaizejs/vitest-config'; // Explicitly reference and customize the shared config export default defineConfig({ // Inherit all settings from shared config ...sharedConfig, // Override or add additional settings test: { // Existing shared settings are preserved // Package-specific settings env: { NODE_ENV: 'test', }, globals: true, // Longer timeout for complex tests testTimeout: 10000, // override the include pattern include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], // Custom coverage thresholds coverage: { reportsDirectory: './coverage', exclude: ['**/node_modules/**', '**/test/**', '**/*.d.ts', '**/*.config.*'], // Use the thresholds property for coverage targets thresholds: { lines: 60, functions: 60, branches: 60, statements: 60, }, }, }, });