diff --git a/.github/workflows/npm-test.yml b/.github/workflows/npm-test.yml index 7ad3caf6..9d9f2582 100644 --- a/.github/workflows/npm-test.yml +++ b/.github/workflows/npm-test.yml @@ -37,9 +37,7 @@ jobs: run: npm install - name: Perform tests and generate coverage report - run: | - npm test - npm run coverage + run: npm run coverage - name: Coveralls uses: coverallsapp/github-action@master diff --git a/.nycrc.json b/.nycrc.json deleted file mode 100644 index bbfbeb77..00000000 --- a/.nycrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "reporter": [ "html", "text-summary" ], - "extends": "@istanbuljs/nyc-config-typescript" -} diff --git a/package.json b/package.json index 783e676d..e5c1fc23 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "build": "tsc -b", "pretest": "npm run build", "prepublishOnly": "npm run build", - "test": "c8 mocha ./dist/test --exit", - "coverage": "c8 report --reporter=lcov --reporter=text-summary", + "test": "mocha ./dist/test --exit", + "coverage": "c8 -a --reporter=lcov --reporter=text --reporter=html npm run test", "lint": "eslint .", "lint:fix": "eslint . --fix" },