From e4af07273b84a44b46b7a480c902f45995c5a151 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Mon, 6 May 2019 23:48:01 +0300 Subject: [PATCH] nyc: Switch config from JSON to YAML and move args from package.json --- .nycrc | 5 ----- .nycrc.yml | 8 ++++++++ package.json | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 .nycrc create mode 100644 .nycrc.yml diff --git a/.nycrc b/.nycrc deleted file mode 100644 index c271c712af..0000000000 --- a/.nycrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "include": ["src/"], - "exclude": ["src/polyfills"], - "temp-directory": "coverage" -} diff --git a/.nycrc.yml b/.nycrc.yml new file mode 100644 index 0000000000..fdc2fab97e --- /dev/null +++ b/.nycrc.yml @@ -0,0 +1,8 @@ +include: + - "src/" +exclude: + - "src/polyfills" +clean: true +temp-directory: "coverage" +skip-full: true +reporter: [json, html, text] diff --git a/package.json b/package.json index 2741c0a9d3..2fd3296f79 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "test": "npm run lint && npm run check && npm run testonly", "test:ci": "npm run lint -- --no-cache && npm run check && npm run testonly:cover", "testonly": "mocha --full-trace src/**/__tests__/**/*-test.js", - "testonly:cover": "nyc --clean --skip-full --reporter json --reporter html --reporter text -- npm run testonly", + "testonly:cover": "nyc npm run testonly", "lint": "eslint --cache --report-unused-disable-directives src", "benchmark": "node ./resources/benchmark.js", "prettier": "prettier --write --list-different 'src/**/*.js'",