diff --git a/.changeset/olive-years-kneel.md b/.changeset/olive-years-kneel.md new file mode 100644 index 00000000000..a0abddf2420 --- /dev/null +++ b/.changeset/olive-years-kneel.md @@ -0,0 +1,4 @@ +--- +--- + +chore: fix coverage report diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 33551b5e644..0ae69ce7a11 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -116,13 +116,13 @@ jobs: uses: actions/download-artifact@v4 with: name: node - path: coverage/environments + path: coverage/environments/node - name: Download Coverage Artifact for Browser Tests uses: actions/download-artifact@v4 with: name: browser - path: coverage/environments + path: coverage/environments/browser - name: Generate Coverage run: pnpm test:coverage-merge diff --git a/package.json b/package.json index 78aae96a9d6..d1ba90e2a05 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,13 @@ "depcheck": "knip --dependencies --tags=-knipignore", "knip:fix": "knip --fix", "test": "vitest --run --coverage --config vitest.node.config.mts $(scripts/tests-find.sh --node)", - "test:filter": "vitest --run --coverage --config vitest.node.config.mts", + "test:filter": "vitest --run --coverage false --config vitest.node.config.mts", "test:coverage-merge": "tsx ./scripts/tests-coverage-merge.ts", "test:coverage-diff": "tsx ./scripts/tests-coverage-diff.ts", "test:watch": "vitest --watch --config vitest.node.config.mts $(scripts/tests-find.sh --node)", "test:validate": "./scripts/tests-validate.sh", "test:browser": "vitest --run --coverage --config vitest.browser.config.mts $(scripts/tests-find.sh --browser)", - "test:browser:filter": "vitest --run --coverage --config vitest.browser.config.mts", + "test:browser:filter": "vitest --run --coverage false --config vitest.browser.config.mts", "test:e2e": "vitest --run --config vitest.node.config.mts $(scripts/tests-find.sh --e2e)", "lint": "run-s lint:check prettier:check", "lint:check": "eslint . --ext .ts --max-warnings 0", diff --git a/vitest.config.ts b/vitest.config.ts deleted file mode 100644 index 224c9b5a35d..00000000000 --- a/vitest.config.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { defineConfig } from 'vitest/config'; - -export default defineConfig({ - test: { - coverage: { - enabled: true, - provider: 'istanbul', - reporter: ['json', 'text', 'html'], - include: ['packages', 'internal', 'apps'], - exclude: [ - '**/*.js', - '**/node_modules/**', - '**/dist/**', - '**/test/**', - '**/*.test.ts', - '**/*.d.ts', - '**/bin.ts', - 'packages/fuel-gauge/**', - 'apps/demo-*', - 'apps/docs', - ], - }, - }, -});