diff --git a/.c8rc.json b/.c8rc.json new file mode 100644 index 0000000..39f2a65 --- /dev/null +++ b/.c8rc.json @@ -0,0 +1,12 @@ +{ + "all": true, + "exclude": [ + "{coverage,test}/**", + ".eslintrc.js", + "index.d.ts" + ], + "reporter": [ + "html", + "lcov" + ] +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa364fe..f2eb78d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,3 +24,6 @@ jobs: - run: npm install --no-audit - run: npm test - uses: codecov/codecov-action@v1 + with: + file: coverage/lcov.info + name: ${{ matrix.os }}/${{ matrix.node-version }} diff --git a/.gitignore b/.gitignore index d414f31..27c5cc2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ /node_modules -.nyc_output coverage diff --git a/package.json b/package.json index f9cf237..96dc8d0 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "node": ">=10.18.0 <11 || >=12.14.0 <13 || >=13.5.0" }, "scripts": { - "test": "as-i-preach && nyc ava" + "test": "as-i-preach && c8 ava" }, "repository": { "type": "git", @@ -30,28 +30,21 @@ "js-string-escape": "^1.0.1", "lodash": "^4.17.15", "md5-hex": "^3.0.1", - "semver": "^7.1.3", + "semver": "^7.3.2", "well-known-symbols": "^2.0.0" }, "devDependencies": { "@novemberborn/eslint-plugin-as-i-preach": "^12.0.0", - "ava": "^3.5.1", + "ava": "^3.8.2", + "c8": "^7.1.2", "eslint": "^6.8.0", - "eslint-plugin-ava": "^10.2.0", - "eslint-plugin-import": "^2.20.1", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-ava": "^10.3.0", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-security": "^1.4.0", "eslint-plugin-standard": "^4.0.1", "eslint-plugin-unicorn": "^17.2.0", - "nyc": "^15.0.0", "proxyquire": "^2.1.3" - }, - "nyc": { - "reporter": [ - "html", - "lcov", - "text" - ] } }