Skip to content

Commit c51f049

Browse files
committed
chore: update snapshots for node 18
1 parent fbd46e4 commit c51f049

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest, windows-latest]
18-
node: [16]
18+
node: [18]
1919
fail-fast: false
2020

2121
steps:

test/__snapshots__/fixtures.test.ts.snap

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ Error: ParseError: \`import\` can only be used in \`import
1818
<cwd>/index.ts
1919
at Object.<anonymous> (<root>/bin/jiti)
2020
at Module._compile (internal/modules/cjs/loader)
21-
at Object.Module._extensions..js (internal/modules/cjs/loader)
21+
at Module._extensions..js (internal/modules/cjs/loader)
2222
at Module.load (internal/modules/cjs/loader)
23-
at Function.Module._load (internal/modules/cjs/loader)
23+
at Module._load (internal/modules/cjs/loader)
2424
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main)
25-
at internal/main/run_main_module"
25+
at internal/main/run_main_module
26+
27+
Node.js v18.16.0"
2628
`;
2729
2830
exports[`fixtures > error-parse > stdout 1`] = `""`;
@@ -40,13 +42,15 @@ TypeError: The \\"listener\\" argument must be of type function. Received undefi
4042
at jiti (<root>/dist/jiti)
4143
at Object.<anonymous> (<root>/bin/jiti)
4244
at Module._compile (internal/modules/cjs/loader)
43-
at Object.Module._extensions..js (internal/modules/cjs/loader)
45+
at Module._extensions..js (internal/modules/cjs/loader)
4446
at Module.load (internal/modules/cjs/loader)
45-
at Function.Module._load (internal/modules/cjs/loader)
47+
at Module._load (internal/modules/cjs/loader)
4648
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main)
4749
at internal/main/run_main_module {
4850
code: 'ERR_INVALID_ARG_TYPE'
49-
}"
51+
}
52+
53+
Node.js v18.16.0"
5054
`;
5155
5256
exports[`fixtures > error-runtime > stdout 1`] = `""`;
@@ -64,9 +68,9 @@ exports[`fixtures > esm > stdout 1`] = `
6468
'at jiti (<root>/dist/jiti)',
6569
'at Object.<anonymous> (<root>/bin/jiti)',
6670
'at Module._compile (internal/modules/cjs/loader)',
67-
'at Object.Module._extensions..js (internal/modules/cjs/loader)',
71+
'at Module._extensions..js (internal/modules/cjs/loader)',
6872
'at Module.load (internal/modules/cjs/loader)',
69-
'at Function.Module._load (internal/modules/cjs/loader)',
73+
'at Module._load (internal/modules/cjs/loader)',
7074
'at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main)',
7175
'at internal/main/run_main_module'
7276
]

0 commit comments

Comments
 (0)