This commit is contained in:
wchino
2026-06-13 17:38:25 +08:00
parent e7e938f261
commit 7b33d9f9fa
190 changed files with 23222 additions and 4336 deletions

View File

@@ -1,14 +1,23 @@
module.exports = {
moduleFileExtensions: ['js', 'json', 'ts'],
moduleFileExtensions: ['ts', 'js', 'json'],
rootDir: 'src',
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
'^.+\\.ts$': [
'ts-jest',
{
tsconfig: {
esModuleInterop: true,
resolveJsonModule: true,
},
},
],
},
collectCoverageFrom: ['**/*.(t|j)s'],
coverageDirectory: '../coverage',
testEnvironment: 'node',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^@thebet365/shared$': '<rootDir>/../../../packages/shared/src/index.ts',
},
};