Skip to content

Commit e3d581b

Browse files
CCM-12875: Updated jest config for tests
1 parent bc1b409 commit e3d581b

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

lambdas/pdm-mock-api/jest.config.ts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
import type { Config } from 'jest';
1+
import type { Config } from "jest";
22

33
const config: Config = {
4-
preset: 'ts-jest',
5-
testEnvironment: 'node',
6-
roots: ['<rootDir>/src'],
7-
testMatch: ['**/__tests__/**/*.test.ts'],
4+
preset: "ts-jest",
5+
testEnvironment: "node",
6+
7+
roots: ["<rootDir>/src"],
8+
9+
testMatch: ["**/__tests__/**/*.test.ts"],
10+
811
collectCoverageFrom: [
9-
'src/**/*.ts',
10-
'!src/**/__tests__/**',
11-
'!src/**/*.test.ts',
12+
"src/**/*.ts",
13+
"!src/**/__tests__/**",
14+
"!src/**/*.test.ts",
1215
],
16+
1317
coverageThreshold: {
1418
global: {
1519
branches: 80,
@@ -18,8 +22,12 @@ const config: Config = {
1822
statements: 80,
1923
},
2024
},
25+
2126
moduleNameMapper: {
22-
'^utils$': '<rootDir>/../../utils/utils',
27+
"^handlers$": "<rootDir>/src/handlers",
28+
"^utils$": "<rootDir>/src/utils",
29+
"^container$": "<rootDir>/src/container",
30+
"^authenticator$": "<rootDir>/src/authenticator",
2331
},
2432
};
2533

0 commit comments

Comments
 (0)