Adds unit tests for all services

This commit is contained in:
2026-01-14 16:54:06 -05:00
parent d8930a6a30
commit a3317dd46f
59 changed files with 12592 additions and 8683 deletions

16
jest.config.js Normal file
View File

@@ -0,0 +1,16 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src'],
testMatch: ['**/__tests__/**/*.spec.ts', '**/?(*.)+(spec|test).ts'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
collectCoverageFrom: ['src/**/*.ts', '!src/**/*.d.ts', '!src/**/__tests__/**'],
moduleFileExtensions: ['ts', 'js', 'json'],
coverageDirectory: 'coverage',
verbose: true,
testTimeout: 10000,
maxConcurrency: 1,
maxWorkers: 1,
};