This repository was archived by the owner on Jun 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +442
-17
lines changed Expand file tree Collapse file tree 3 files changed +442
-17
lines changed 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=text-summary npm run mocha" ,
38
- "test:mongo" : " npm run eslint && cross-env NODE_ENV=test nyc --reporter=text-summary npm run mocha:mongo" ,
39
- "test:coverage" : " npm run eslint && cross-env NODE_ENV=test nyc --reporter=lcovonly --reporter=text-summary npm run mocha" ,
37
+ "nyc" : " nyc --reporter=text-summary" ,
38
+ "test" : " npm run eslint && cross-env NODE_ENV=test npm run nyc npm run mocha" ,
39
+ "test:mongo" : " npm run eslint && cross-env NODE_ENV=test npm run nyc npm run mocha:mongo" ,
40
+ "test:coverage" : " npm run eslint && cross-env NODE_ENV=test npm run nyc --reporter=lcovonly npm run mocha" ,
40
41
"eslint" : " eslint server/. test/. --config .eslintrc.json" ,
41
42
"start" : " concurrently 'mongod' 'wait-on tcp:27017 && cross-env NODE_ENV=production node server/'" ,
42
43
"start:win" : " concurrently \" mongod\" \" wait-on tcp:27017 &&SET NODE_ENV=production&& node server/\" " ,
93
94
"mongoose" : " ~4.13.2" ,
94
95
"multer" : " ~1.3.0" ,
95
96
"node-sass" : " ~4.7.2" ,
97
+ "nyc" : " ^12.0.2" ,
96
98
"quill-url-embeds" : " ^1.2.5" ,
97
99
"raven" : " ~2.6.1" ,
98
100
"request" : " ~2.86.0" ,
You can’t perform that action at this time.
0 commit comments