Files
wehub-resource-sync adc62957a7
CI / Lint & Type Check (push) Waiting to run
CI / Test (push) Waiting to run
CI / Test (Windows path suite) (push) Waiting to run
CI / Build (push) Blocked by required conditions
CI / No Committed Build Artifacts (push) Waiting to run
CI / Multi-repo Path Gate (AST-grep) (ubuntu-latest) (push) Waiting to run
CI / Multi-repo Path Gate (AST-grep) (windows-latest) (push) Waiting to run
CI / Version Consistency Check (push) Waiting to run
CI / npm pack + install test (push) Blocked by required conditions
Upgrade Test / omc update + session-start hook (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 12:36:54 +08:00

34 lines
735 B
TypeScript

import path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
testTimeout: 30000,
include: [
'src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
'tests/**/*.bench.ts',
'tests/**/*.{test,spec}.ts',
],
exclude: ['node_modules', 'dist', '.omc'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'dist/',
'src/**/*.{test,spec}.{js,ts}',
'**/*.d.ts',
'**/*.config.{js,ts}',
'**/index.ts',
],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
});