This repository was archived by the owner on Jun 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +445
-36
lines changed Expand file tree Collapse file tree 4 files changed +445
-36
lines changed Original file line number Diff line number Diff line change 22
22
- script :
23
23
- yarn install --frozen-lockfile --non-interactive
24
24
- yarn add codacy-coverage
25
- - yarn global add nyc
26
25
- yarn test
27
26
- cat ./coverage/lcov.info | codacy-coverage
28
27
Original file line number Diff line number Diff line change @@ -105,9 +105,7 @@ The seeder configuration has two properties:
105
105
106
106
## Testing
107
107
108
- First you will need to install the `nyc` CLI by running `yarn global add nyc` before you run the tests for the first time.
109
-
110
- Then simply run `yarn test` and all your tests in the `test/` directory will be run.
108
+ Simply run `yarn test` and all your tests in the `test/` directory will be run.
111
109
112
110
## Scaffolding
113
111
Original file line number Diff line number Diff line change 34
34
},
35
35
"scripts" : {
36
36
"clear" : " rm -Rf tmp" ,
37
- "test" : " npm run eslint && cross-env NODE_ENV=test nyc --reporter=lcovonly --reporter=text-summary npm run mocha" ,
38
- "test:mongo" : " npm run eslint && cross-env NODE_ENV=test nyc --reporter=lcovonly --reporter=text-summary npm run mocha:mongo" ,
37
+ "test" : " npm run eslint && cross-env NODE_ENV=test && nyc --reporter=lcovonly --reporter=text-summary npm run mocha" ,
38
+ "test:mongo" : " npm run eslint && cross-env NODE_ENV=test && nyc --reporter=lcovonly --reporter=text-summary npm run mocha:mongo" ,
39
39
"eslint" : " eslint server/. test/. --config .eslintrc.json" ,
40
40
"start" : " concurrently 'mongod' 'wait-on tcp:27017 && cross-env NODE_ENV=production node server/'" ,
41
41
"dev:debug" : " npm run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon --inspect server/'" ,
91
91
"mongoose" : " ~4.13.2" ,
92
92
"multer" : " ~1.3.0" ,
93
93
"node-sass" : " ~4.7.2" ,
94
+ "nyc" : " ^12.0.2" ,
94
95
"quill-url-embeds" : " ^1.2.5" ,
95
96
"raven" : " ~2.6.1" ,
96
97
"request" : " ~2.86.0" ,
You can’t perform that action at this time.
0 commit comments