File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed
Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 1- import type { Config } from ' jest' ;
1+ import type { Config } from " jest" ;
22
33const 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
You can’t perform that action at this time.
0 commit comments