node-apis
Version:
🚀 Advanced TypeScript API generator with clean architecture, comprehensive testing, and automatic formatting. Generate production-ready Node.js APIs with complete integration test suites.
44 lines (42 loc) • 861 B
text/typescript
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
root: './tests',
testTimeout: 10000,
hookTimeout: 10000,
teardownTimeout: 5000,
coverage: {
reporter: ['text', 'json', 'html'],
exclude: [
'tests/**',
'dist/**',
'node_modules/**',
'**/*.d.ts',
'**/*.config.*',
'**/coverage/**'
],
thresholds: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
}
},
setupFiles: ['./setup.ts'],
reporters: ['verbose'],
outputFile: {
json: './coverage/test-results.json',
junit: './coverage/junit.xml'
}
},
resolve: {
alias: {
'@': './src',
'@tests': './tests'
}
}
});