From 7f9498bc46a3ead2613b21c9795a155f7f7c317d Mon Sep 17 00:00:00 2001 From: Qixiang Cheng Date: Wed, 9 Oct 2019 18:13:22 +0800 Subject: [PATCH] Use npm to run scripts Ref: https://github.com/istanbuljs/nyc/issues/1181 --- .travis.yml | 2 +- src/dashboard/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 269f7e2b9..71393eb8a 100755 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,4 @@ matrix: script: - cd src/dashboard - yarn - - yarn coverage:backend + - npm run coverage:backend diff --git a/src/dashboard/package.json b/src/dashboard/package.json index ccfcc4d3f..46fabf58e 100644 --- a/src/dashboard/package.json +++ b/src/dashboard/package.json @@ -79,7 +79,7 @@ "build": "react-scripts build", "backend": "nodemon server", "test:backend": "mocha --config server/.mocharc.js", - "coverage:backend": "nyc --nycrc-path server/.nycrc.js yarn test:backend", + "coverage:backend": "nyc --nycrc-path server/.nycrc.js npm run test:backend", "report:backend": "nyc --nycrc-path server/.nycrc.js report --reporter html" }, "eslintConfig": {