From: Jérôme Benoit Date: Sun, 22 Feb 2026 23:33:05 +0000 (+0100) Subject: build: rename coverage to test:coverage, remove redundant coverage:html X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a02d55c0c6c7ea639f0e5ab8594a34dcde8246c0;p=poolifier.git build: rename coverage to test:coverage, remove redundant coverage:html --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61f162d87..30b0e38a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: - name: Tests & Coverage if: ${​{ matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} - run: pnpm coverage + run: pnpm test:coverage - name: Tests if: ${​{ !(matrix.os == 'ubuntu-latest' && matrix.node == '22.x') }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 40cab2934..6fdb28472 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -50,7 +50,7 @@ jobs: run: pnpm install --ignore-scripts --frozen-lockfile - name: Tests & Coverage - run: pnpm coverage + run: pnpm test:coverage - name: Lint run: pnpm lint diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8a2bc3d09..ca0877610 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,7 @@ Please do your PR on **master** branch. **How to run unit tests and coverage** ```bash - pnpm test && pnpm coverage + pnpm test:coverage ``` **How to check if your new code is standard JS style** diff --git a/package.json b/package.json index 280b48969..619960541 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,7 @@ "benchmark:tinybench:debug": "pnpm build && node --enable-source-maps --inspect benchmarks/internal/bench.mjs -t tinybench", "test": "pnpm build --environment SOURCEMAP:false && vitest run", "test:debug": "pnpm build && vitest --inspect-brk --no-file-parallelism", - "coverage": "pnpm build --environment SOURCEMAP:false && vitest run --coverage", - "coverage:html": "pnpm build --environment SOURCEMAP:false && vitest run --coverage --coverage.reporter=html", + "test:coverage": "pnpm build --environment SOURCEMAP:false && vitest run --coverage", "format": "biome format . --write; eslint . --cache --fix", "lint": "eslint . --cache", "lint:fix": "eslint . --cache --fix",