File tree Expand file tree Collapse file tree 3 files changed +8
-15
lines changed
Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 22module . 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} ;
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments