Skip to content

Commit 6a205a0

Browse files
authored
fix(coverage): fix coverage exclusion on windows (#562)
1 parent 4aed867 commit 6a205a0

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

e2e/projects/coverage.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { runRstestCli } from '../scripts';
77
const __filename = fileURLToPath(import.meta.url);
88
const __dirname = dirname(__filename);
99

10-
// TODO: swc-plugin-coverage-instrument `unstableExclude` option should works in windows
11-
describe.skipIf(process.platform === 'win32')('test projects coverage', () => {
10+
describe('test projects coverage', () => {
1211
it('should run projects correctly with coverage', async () => {
1312
const { cli, expectExecSuccess } = await runRstestCli({
1413
command: 'rstest',

e2e/test-coverage/index.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { describe, expect, it } from '@rstest/core';
33
import fs from 'fs-extra';
44
import { runRstestCli } from '../scripts';
55

6-
// TODO: swc-plugin-coverage-instrument `unstableExclude` option should works in windows
7-
describe.skipIf(process.platform === 'win32')('test coverage-istanbul', () => {
6+
describe('test coverage-istanbul', () => {
87
it('coverage-istanbul', async () => {
98
const { expectExecSuccess, expectLog, cli } = await runRstestCli({
109
command: 'rstest',

packages/coverage-istanbul/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"dev": "rslib build --watch"
2121
},
2222
"dependencies": {
23-
"swc-plugin-coverage-instrument": "^0.0.28",
23+
"swc-plugin-coverage-instrument": "^0.0.30",
2424
"istanbul-lib-coverage": "^3.2.2",
2525
"istanbul-lib-instrument": "^6.0.3",
2626
"istanbul-lib-report": "^3.0.1",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)