Setup initial project
This commit is contained in:
commit
db79af06f7
119 changed files with 20761 additions and 0 deletions
29
packages/api/vitest.config.ts
Normal file
29
packages/api/vitest.config.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'node',
|
||||
include: ['src/**/*.test.ts'],
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
enabled: false, // enable via --coverage flag or test:cov script
|
||||
include: ['src/**/*.ts'],
|
||||
exclude: [
|
||||
'src/**/*.test.ts',
|
||||
'src/scripts/**',
|
||||
'src/common/types.ts', // declaration merging only — no runtime logic
|
||||
],
|
||||
reporter: ['text', 'lcov', 'json-summary', 'html'],
|
||||
reportsDirectory: './coverage',
|
||||
thresholds: {
|
||||
lines: 100,
|
||||
functions: 100,
|
||||
branches: 90,
|
||||
statements: 100,
|
||||
},
|
||||
},
|
||||
testTimeout: 10_000,
|
||||
hookTimeout: 30_000,
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue