Files
telegram-management-system/marketing-agent/jest.config.js
你的用户名 237c7802e5
Some checks failed
Deploy / deploy (push) Has been cancelled
Initial commit: Telegram Management System
Full-stack web application for Telegram management
- Frontend: Vue 3 + Vben Admin
- Backend: NestJS
- Features: User management, group broadcast, statistics

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 15:37:50 +08:00

68 lines
1.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default {
testEnvironment: 'node',
coverageDirectory: 'coverage',
collectCoverageFrom: [
'services/**/*.js',
'!services/**/node_modules/**',
'!services/**/*.test.js',
'!services/**/*.spec.js',
'!services/**/tests/**',
'!services/**/coverage/**',
'!services/**/dist/**',
'!services/**/build/**'
],
testMatch: [
'**/tests/**/*.test.js',
'**/tests/**/*.spec.js'
],
testPathIgnorePatterns: [
'/node_modules/',
'/dist/',
'/build/',
'/coverage/'
],
setupFilesAfterEnv: [
'<rootDir>/tests/setup.js'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^@services/(.*)$': '<rootDir>/services/$1',
'^@tests/(.*)$': '<rootDir>/tests/$1'
},
transform: {
'^.+\\.js$': ['babel-jest', {
presets: [
['@babel/preset-env', {
targets: {
node: 'current'
}
}]
]
}]
},
coverageThreshold: {
global: {
branches: 70,
functions: 70,
lines: 80,
statements: 80
}
},
testTimeout: 30000,
verbose: true,
forceExit: true,
clearMocks: true,
resetMocks: true,
restoreMocks: true,
reporters: [
'default',
['jest-junit', {
outputDirectory: 'test-results',
outputName: 'junit.xml',
classNameTemplate: '{classname}',
titleTemplate: '{title}',
ancestorSeparator: ' ',
usePathForSuiteName: 'true'
}]
]
};