Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 9c2c24c

Browse files
committed
Remove nyc as a global dependency
1 parent 4c9233b commit 9c2c24c

File tree

3 files changed

+442
-17
lines changed

3 files changed

+442
-17
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ The seeder configuration has two properties:
105105
106106
## Testing
107107
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.
111109
112110
## Scaffolding
113111

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@
3434
},
3535
"scripts": {
3636
"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",
4041
"eslint": "eslint server/. test/. --config .eslintrc.json",
4142
"start": "concurrently 'mongod' 'wait-on tcp:27017 && cross-env NODE_ENV=production node server/'",
4243
"start:win": "concurrently \"mongod\" \"wait-on tcp:27017 &&SET NODE_ENV=production&& node server/\"",
@@ -93,6 +94,7 @@
9394
"mongoose": "~4.13.2",
9495
"multer": "~1.3.0",
9596
"node-sass": "~4.7.2",
97+
"nyc": "^12.0.2",
9698
"quill-url-embeds": "^1.2.5",
9799
"raven": "~2.6.1",
98100
"request": "~2.86.0",

0 commit comments

Comments
 (0)