diff --git a/packages/coverage-v8/package.json b/packages/coverage-v8/package.json index 37fcb06632c0..41173171ac44 100644 --- a/packages/coverage-v8/package.json +++ b/packages/coverage-v8/package.json @@ -56,7 +56,7 @@ "dependencies": { "@bcoe/v8-coverage": "^1.0.2", "@vitest/utils": "workspace:*", - "ast-v8-to-istanbul": "^0.3.8", + "ast-v8-to-istanbul": "^0.3.10", "istanbul-lib-coverage": "catalog:", "istanbul-lib-report": "catalog:", "istanbul-reports": "catalog:", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 70a10d458120..da181ab5a571 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -645,8 +645,8 @@ importers: specifier: workspace:* version: link:../utils ast-v8-to-istanbul: - specifier: ^0.3.8 - version: 0.3.8 + specifier: ^0.3.10 + version: 0.3.10 istanbul-lib-coverage: specifier: 'catalog:' version: 3.2.2 @@ -5016,8 +5016,8 @@ packages: resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==} engines: {node: '>=4'} - ast-v8-to-istanbul@0.3.8: - resolution: {integrity: sha512-szgSZqUxI5T8mLKvS7WTjF9is+MVbOeLADU73IseOcrqhxr/VAvy6wfoVE39KnKzA7JRhjF5eUagNlHwvZPlKQ==} + ast-v8-to-istanbul@0.3.10: + resolution: {integrity: sha512-p4K7vMz2ZSk3wN8l5o3y2bJAoZXT3VuJI5OLTATY/01CYWumWvwkUw0SqDBnNq6IiTO3qDa1eSQDibAV8g7XOQ==} async-function@1.0.0: resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==} @@ -13000,7 +13000,7 @@ snapshots: dependencies: tslib: 2.8.1 - ast-v8-to-istanbul@0.3.8: + ast-v8-to-istanbul@0.3.10: dependencies: '@jridgewell/trace-mapping': 0.3.31 estree-walker: 3.0.3 diff --git a/test/coverage-test/fixtures/src/untested-file.ts b/test/coverage-test/fixtures/src/untested-file.ts index cd744e7e9d13..a1304245ad5d 100644 --- a/test/coverage-test/fixtures/src/untested-file.ts +++ b/test/coverage-test/fixtures/src/untested-file.ts @@ -35,12 +35,12 @@ export function math(a: number, b: number, operator: '*' | '+') { return multiply(a, b) } - /* v8 ignore start */ + /* todo fix in https://github.com/vitest-dev/vitest/pull/9204 */ if (operator === '+') { // This line should be excluded return add(a, b) } - /* v8 ignore stop */ + /* todo fix in https://github.com/vitest-dev/vitest/pull/9204 */ // This line should NOT be covered throw new Error('Unsupported operator')