Skip to content

Commit 1702610

Browse files
committed
chore: update test and build commands
1 parent 13186d2 commit 1702610

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ jobs:
1919
- name: Setup and install dependencies
2020
run: |
2121
npm ci
22-
npm run build
22+
- name: Unit tests and Coverage
23+
run: |
2324
npm run test
25+
- name: Newman tests
26+
run: |
2427
npm run test:newman
2528
Publish:
2629
runs-on: ubuntu-latest

jest.config.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,5 @@
22
module.exports = {
33
preset: 'ts-jest',
44
testEnvironment: 'node',
5-
testMatch: [
6-
"**/__tests__/**/*.ts?(x)",
7-
"**/?(*.)+(spec|test).ts?(x)"
8-
],
9-
collectCoverage: true,
10-
// collectCoverageFrom: [
11-
// "./app/**/*.ts",
12-
// "!./app/**/*.js",
13-
// "!./app/**/*.d.ts",
14-
// "!./app/**/*.(spec|test).ts"
15-
// ]
5+
collectCoverage: true
166
};

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"scripts": {
2525
"start": "tsc --watch --preserveWatchOutput & nodemon dev-server.js -e js -w ./app",
2626
"build": "tsc",
27-
"test": "jest",
28-
"test:watch": "jest --watch",
29-
"test:newman": "node dev-server.js --test",
27+
"test": "find app -wholename '*.d.ts' -delete && find app -wholename '*.js' -delete && jest",
28+
"test:watch": "npm t -- --watch",
29+
"test:newman": "npm run build && node dev-server.js --test",
3030
"lint": "tslint --fix -p ./tsconfig.json",
3131
"prettier": "prettier --write './**/*.ts?(x)'",
3232
"release": "semantic-release"

0 commit comments

Comments
 (0)