feat: setup Jest backend — config + deps + scripts test/watch/cov

This commit is contained in:
2026-04-05 07:25:46 +02:00
parent 108f021bd8
commit 2504c3756d
3 changed files with 3503 additions and 1 deletions

15
backend/jest.config.ts Normal file
View File

@@ -0,0 +1,15 @@
import type { Config } from 'jest';
const config: Config = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: 'src',
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
collectCoverageFrom: ['**/*.(t|j)s'],
coverageDirectory: '../coverage',
testEnvironment: 'node',
};
export default config;