- Updated TypeScript configuration to include test files. - Modified Vitest configuration to include test files from both src and tests directories. - Added ADR-063 documenting the decision and implementation of PM2 namespaces. - Created implementation report detailing the migration to PM2 namespaces. - Developed migration script for transitioning to namespaced PM2 processes. - Updated ecosystem configuration files to define namespaces for production, test, and development environments. - Enhanced workflow files to include namespace flags in all PM2 commands. - Verified migration with comprehensive tests ensuring all processes are correctly namespaced.
24 lines
760 B
TypeScript
24 lines
760 B
TypeScript
/// <reference types="vitest" />
|
|
// vitest.config.ts
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
// This setup file is where we can add global test configurations
|
|
setupFiles: ['./src/tests/setup/tests-setup-unit.ts'],
|
|
// , './src/tests/setup/mockHooks.ts'
|
|
// removed this from above: './src/tests/setup/mockComponents.tsx'
|
|
|
|
// This line is the key fix: it tells Vitest to include the type definitions
|
|
// Include both src/ tests and root tests/ directory
|
|
include: ['src/**/*.test.{ts,tsx}', 'tests/**/*.test.{ts,tsx}'],
|
|
coverage: {
|
|
exclude: [
|
|
'**/index.ts', // barrel exports don't need coverage
|
|
],
|
|
},
|
|
},
|
|
});
|