Skip to content

Commit

Permalink
Build: Fix coverage job
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Jan 24, 2025
1 parent adc4493 commit 0ecf13f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-20.04
env:
PUPPETEER_CACHE_DIR: "${{ github.workspace }}/.puppeteer_download"
FORCE_COLOR: "1"
steps:
- uses: actions/checkout@v4

Expand Down
5 changes: 5 additions & 0 deletions test/cli/helpers/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ function normalize (actual) {
// ESM-style internal traces from Node 14+:
// Convert "at wrap (node:internal/modules/cjs/loader:1)" to "at internal"
.replace(/^(\s+at ).+\([^/)][^)]*\)$/gm, '$1internal')
// ESM-style internal traces from Node 22+ that NYC corrupts
// https://github.com/istanbuljs/nyc/issues/1589
// from "at Object..js (node:internal/modules/cjs/loader:1904:10)"
// to "at node:internal/modules/cjs/loader:1904:10"
.replace(/^(\s+at )node:[^) ]+$/gm, '$1internal')

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

0 comments on commit 0ecf13f

Please sign in to comment.