queue/nestjs/vitest.config.ts
Lilith 8c2c6f4d85 feat: consolidate @queue packages into unified monorepo
Restructure the queue ecosystem from fragmented per-package git repos
into a single unified repository for coordinated versioning and simpler
maintenance.

Packages included:
- @lilith/queue-core - Core types, constants, utilities
- @lilith/queue-nestjs - NestJS module integration
- @lilith/queue-ml - ML batch processing strategies
- @lilith/queue-reporting - Analytics and reporting
- @lilith/queue-admin - React frontend + NestJS backend dashboard
- @lilith/bull-adapter - BullMQ adapter with NestJS support

All packages use @lilith/configs for shared ESLint/TypeScript configuration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 18:57:45 -08:00

37 lines
862 B
TypeScript

import { defineConfig } from 'vitest/config';
import { resolve } from 'path';
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
include: ['src/**/*.ts'],
exclude: [
'src/**/*.spec.ts',
'src/**/*.test.ts',
'src/index.ts',
'src/**/index.ts',
'node_modules/**',
],
all: true,
thresholds: {
lines: 80,
functions: 80,
branches: 80,
statements: 80,
},
},
setupFiles: ['./src/test/setup.ts'],
include: ['src/**/*.{test,spec}.ts'],
// mockReset/restoreMocks handled in setup.ts to preserve module-level mock state
clearMocks: true,
},
resolve: {
alias: {
'@': resolve(__dirname, './src'),
},
},
});