From 190bc193942ac0ddc905f5e818a13cd79a5e9895 Mon Sep 17 00:00:00 2001 From: Christophe Hurpeau <302891+christophehurpeau@users.noreply.github.com> Date: Thu, 15 Aug 2024 17:13:54 +0200 Subject: [PATCH] chore: use c8 instead of experimental --- .github/workflows/gh-pages.yml | 2 +- package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index b238c88..12aaedf 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: run: yarn install --immutable - name: Generate Coverage - run: NODE_V8_COVERAGE=./docs/coverage yarn test:coverage:lcov + run: NODE_V8_COVERAGE=./docs/coverage yarn test:coverage - name: Create nojekyll run: touch docs/.nojekyll diff --git a/package.json b/package.json index 2802866..0cb78cf 100644 --- a/package.json +++ b/package.json @@ -44,9 +44,9 @@ "postinstallDev": "pob-root-postinstall", "test": "node --test lib/**/*.test.js", "test-typings": "tsc -p typings/tsconfig.json", - "test:coverage": "node --test --experimental-test-coverage lib/**/*.test.js", - "test:coverage:json": "node --test --experimental-test-coverage lib/**/*.test.js", - "test:coverage:lcov": "node --test --experimental-test-coverage --test-reporter=lcov lib/**/*.test.js", + "test:coverage": "npx c8 --all --src ./lib node --test lib/**/*.test.js", + "test:coverage:json": "npx c8 --reporter=json --all --src ./lib node --test lib/**/*.test.js", + "test:coverage:lcov": "npx c8 --reporter=lcov --all --src ./lib node --test lib/**/*.test.js", "test:watch": "node --test lib/**/*.test.js" }, "commitlint": {