Skip to content

Commit 0ecf13f

Browse files
committed
Build: Fix coverage job
1 parent adc4493 commit 0ecf13f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/coverage.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-20.04
1010
env:
1111
PUPPETEER_CACHE_DIR: "${{ github.workspace }}/.puppeteer_download"
12+
FORCE_COLOR: "1"
1213
steps:
1314
- uses: actions/checkout@v4
1415

test/cli/helpers/execute.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ function normalize (actual) {
3838
// ESM-style internal traces from Node 14+:
3939
// Convert "at wrap (node:internal/modules/cjs/loader:1)" to "at internal"
4040
.replace(/^(\s+at ).+\([^/)][^)]*\)$/gm, '$1internal')
41+
// ESM-style internal traces from Node 22+ that NYC corrupts
42+
// https://github.com/istanbuljs/nyc/issues/1589
43+
// from "at Object..js (node:internal/modules/cjs/loader:1904:10)"
44+
// to "at node:internal/modules/cjs/loader:1904:10"
45+
.replace(/^(\s+at )node:[^) ]+$/gm, '$1internal')
4146

4247
// Convert /bin/qunit and /src/cli to internal as well
4348
// Because there are differences between Node 10 and Node 12 in terms

0 commit comments

Comments
 (0)