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'",