Skip to content

Commit

Permalink
fix(coverage): prevent crash when v8 incorrectly merges static_initia…
Browse files Browse the repository at this point in the history
…lizer's (#7150)
  • Loading branch information
AriPerkkio authored Dec 30, 2024
1 parent d243c78 commit cb6db13
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/coverage-v8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"dependencies": {
"@ampproject/remapping": "^2.3.0",
"@bcoe/v8-coverage": "^0.2.3",
"@bcoe/v8-coverage": "^1.0.1",
"debug": "^4.4.0",
"istanbul-lib-coverage": "^3.2.2",
"istanbul-lib-report": "^3.0.1",
Expand Down
1 change: 1 addition & 0 deletions packages/coverage-v8/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { CoverageProvider, ReportContext, ResolvedCoverageOptions, TestProj
import { promises as fs } from 'node:fs'
import { fileURLToPath, pathToFileURL } from 'node:url'
import remapping from '@ampproject/remapping'
// @ts-expect-error -- untyped
import { mergeProcessCovs } from '@bcoe/v8-coverage'
import createDebug from 'debug'
import libCoverage from 'istanbul-lib-coverage'
Expand Down
11 changes: 6 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb6db13

Please sign in to comment.