File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-20.04
10
10
env :
11
11
PUPPETEER_CACHE_DIR : " ${{ github.workspace }}/.puppeteer_download"
12
+ FORCE_COLOR : " 1"
12
13
steps :
13
14
- uses : actions/checkout@v4
14
15
Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ function normalize (actual) {
38
38
// ESM-style internal traces from Node 14+:
39
39
// Convert "at wrap (node:internal/modules/cjs/loader:1)" to "at internal"
40
40
. replace ( / ^ ( \s + a t ) .+ \( [ ^ / ) ] [ ^ ) ] * \) $ / 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 + a t ) n o d e : [ ^ ) ] + $ / gm, '$1internal' )
41
46
42
47
// Convert /bin/qunit and /src/cli to internal as well
43
48
// Because there are differences between Node 10 and Node 12 in terms
You can’t perform that action at this time.
0 commit comments