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

Commit b379f53

Browse files
Merge pull request #82 from Human-Connection/local_nyc
Remove nyc as a global dependency
2 parents e132823 + b8463e9 commit b379f53

File tree

4 files changed

+445
-36
lines changed

4 files changed

+445
-36
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
- script:
2323
- yarn install --frozen-lockfile --non-interactive
2424
- yarn add codacy-coverage
25-
- yarn global add nyc
2625
- yarn test
2726
- cat ./coverage/lcov.info | codacy-coverage
2827

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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
},
3535
"scripts": {
3636
"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",
3939
"eslint": "eslint server/. test/. --config .eslintrc.json",
4040
"start": "concurrently 'mongod' 'wait-on tcp:27017 && cross-env NODE_ENV=production node server/'",
4141
"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,6 +91,7 @@
9191
"mongoose": "~4.13.2",
9292
"multer": "~1.3.0",
9393
"node-sass": "~4.7.2",
94+
"nyc": "^12.0.2",
9495
"quill-url-embeds": "^1.2.5",
9596
"raven": "~2.6.1",
9697
"request": "~2.86.0",

0 commit comments

Comments
 (0)