mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2026-01-30 06:12:05 +00:00
chore: add integration tests to new cli and mcp (#1430)
This commit is contained in:
61
vitest.config.ts
Normal file
61
vitest.config.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
/**
|
||||
* Root Vitest configuration for Task Master monorepo
|
||||
* Provides shared defaults for all packages
|
||||
* Individual packages can extend this config with package-specific settings
|
||||
*/
|
||||
export default defineConfig({
|
||||
test: {
|
||||
// Enable global test APIs (describe, it, expect, etc.)
|
||||
globals: true,
|
||||
|
||||
// Default environment for all packages (Node.js)
|
||||
environment: 'node',
|
||||
|
||||
// Common test file patterns
|
||||
include: [
|
||||
'tests/**/*.test.ts',
|
||||
'tests/**/*.spec.ts',
|
||||
'src/**/*.test.ts',
|
||||
'src/**/*.spec.ts'
|
||||
],
|
||||
|
||||
// Common exclusions
|
||||
exclude: ['node_modules', 'dist', '.git', '.cache', '**/node_modules/**'],
|
||||
|
||||
// Coverage configuration
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
enabled: true,
|
||||
reporter: ['text', 'json', 'html'],
|
||||
include: ['src/**/*.ts'],
|
||||
exclude: [
|
||||
'node_modules/',
|
||||
'dist/',
|
||||
'tests/',
|
||||
'**/*.test.ts',
|
||||
'**/*.spec.ts',
|
||||
'**/*.d.ts',
|
||||
'**/mocks/**',
|
||||
'**/fixtures/**',
|
||||
'**/types/**',
|
||||
'vitest.config.ts',
|
||||
'src/index.ts'
|
||||
],
|
||||
// Default thresholds (can be overridden per package)
|
||||
thresholds: {
|
||||
branches: 70,
|
||||
functions: 70,
|
||||
lines: 70,
|
||||
statements: 70
|
||||
}
|
||||
},
|
||||
|
||||
// Test execution settings
|
||||
testTimeout: 10000,
|
||||
clearMocks: true,
|
||||
restoreMocks: true,
|
||||
mockReset: true
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user