From a02d55c0c6c7ea639f0e5ab8594a34dcde8246c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 23 Feb 2026 00:33:05 +0100 Subject: [PATCH] build: rename coverage to test:coverage, remove redundant coverage:html --- .github/workflows/ci.yml | 2 +- .github/workflows/release-please.yml | 2 +- CONTRIBUTING.md | 2 +- package.json | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) 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", -- 2.53.0