- Refactored Jest configuration for improved ESM and TypeScript support - Updated `jest.setup.ts` with comprehensive test environment configuration - Enhanced mocking for WebSocket, console, and external dependencies - Adjusted package.json dependencies and scripts - Updated tsconfig.json with decorator and test exclusion settings - Improved test coverage configuration and reporting - Simplified test file structure and mocking strategies
47 lines
870 B
JSON
47 lines
870 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"outDir": "./dist",
|
|
"rootDir": ".",
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"declaration": true,
|
|
"sourceMap": true,
|
|
"allowJs": true,
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"types": [
|
|
"node",
|
|
"jest"
|
|
],
|
|
"typeRoots": [
|
|
"./node_modules/@types"
|
|
],
|
|
"lib": [
|
|
"ES2022"
|
|
],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@src/*": [
|
|
"src/*"
|
|
],
|
|
"@tests/*": [
|
|
"__tests__/*"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"src/**/*",
|
|
"__tests__/**/*"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"**/__tests__/**/*.ts",
|
|
"**/*.test.ts"
|
|
]
|
|
} |