Services: Admin-Lehrer, Backend-Lehrer, Studio v2, Website, Klausur-Service, School-Service, Voice-Service, Geo-Service, BreakPilot Drive, Agent-Core Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
564 B
JavaScript
24 lines
564 B
JavaScript
/** @type {import('jest').Config} */
|
|
const config = {
|
|
testEnvironment: 'node',
|
|
roots: ['<rootDir>/tests'],
|
|
testMatch: ['**/*.test.ts'],
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest',
|
|
},
|
|
moduleFileExtensions: ['ts', 'js', 'json'],
|
|
// Ignore node_modules and .next
|
|
testPathIgnorePatterns: ['/node_modules/', '/.next/'],
|
|
// Clear mocks between tests
|
|
clearMocks: true,
|
|
// Coverage configuration
|
|
collectCoverageFrom: [
|
|
'app/**/*.{ts,tsx}',
|
|
'components/**/*.{ts,tsx}',
|
|
'lib/**/*.{ts,tsx}',
|
|
'!**/*.d.ts',
|
|
],
|
|
}
|
|
|
|
module.exports = config
|