File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 NODE_AUTH_TOKEN : ${{ secrets.GH_TOKEN }}
2828
2929 - name : Run unit tests with coverage
30- run : npm run test:cov
30+ run : npm run test
3131 env :
3232 NODE_ENV : test
3333
Original file line number Diff line number Diff line change 88 "dev" : " nest start --watch" ,
99 "start" : " node dist/main" ,
1010 "lint" : " eslint \" {src,test}/**/*.ts\" --fix" ,
11- "test" : " jest --config test/jest.json --runInBand --forceExit" ,
12- "test:cov" : " jest --config test/jest.json --runInBand --forceExit --coverage"
11+ "test" : " jest --config test/jest.json --runInBand --forceExit --coverage"
1312 },
1413 "dependencies" : {
1514 "@backendworks/auth-db" : " ^1.0.5" ,
Original file line number Diff line number Diff line change 11{
2- "moduleFileExtensions" : [" js" , " json" , " ts" ],
3- "rootDir" : " .." ,
4- "testRegex" : " .spec.ts$" ,
5- "transform" : {
6- "^.+\\ .(t|j)s$" : " ts-jest"
7- },
8- "coverageDirectory" : " ../coverage" ,
9- "testEnvironment" : " node" ,
10- "roots" : [" <rootDir>/test/unit" ],
11- "collectCoverageFrom" : [" src/**/*.ts" ],
12- "coveragePathIgnorePatterns" : [" src/main.ts" ],
13- "coverageThreshold" : {
14- "global" : {
15- "branches" : 100 ,
16- "functions" : 100 ,
17- "lines" : 100 ,
18- "statements" : 100
2+ "moduleFileExtensions" : [" js" , " json" , " ts" ],
3+ "rootDir" : " .." ,
4+ "testRegex" : " .spec.ts$" ,
5+ "transform" : {
6+ "^.+\\ .(t|j)s$" : " ts-jest"
7+ },
8+ "coverageDirectory" : " coverage" ,
9+ "testEnvironment" : " node" ,
10+ "roots" : [" <rootDir>/test/unit" ],
11+ "collectCoverageFrom" : [" src/**/*.ts" ],
12+ "coveragePathIgnorePatterns" : [" src/main.ts" ],
13+ "coverageThreshold" : {
14+ "global" : {
15+ "branches" : 100 ,
16+ "functions" : 100 ,
17+ "lines" : 100 ,
18+ "statements" : 100
19+ }
20+ },
21+ "moduleNameMapper" : {
22+ "^src/(.*)$" : " <rootDir>/src/$1"
1923 }
20- },
21- "moduleNameMapper" : {
22- "^src/(.*)$" : " <rootDir>/src/$1"
23- }
2424}
You can’t perform that action at this time.
0 commit comments