Skip to content

Commit 485f047

Browse files
committed
chore: update workflows and package config
1 parent e49f3fc commit 485f047

3 files changed

Lines changed: 23 additions & 24 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
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",

test/jest.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
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
}

0 commit comments

Comments
 (0)