@@ -18,11 +18,13 @@ Error: ParseError: \`import\` can only be used in \`import
18
18
<cwd >/index.ts
19
19
at Object.<anonymous > (<root >/bin/jiti)
20
20
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)
22
22
at Module.load (internal/modules/cjs/loader)
23
- at Function. Module._load (internal/modules/cjs/loader)
23
+ at Module._load (internal/modules/cjs/loader)
24
24
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"
26
28
`;
27
29
28
30
exports[`fixtures > error-parse > stdout 1`] = `""`;
@@ -40,13 +42,15 @@ TypeError: The \\"listener\\" argument must be of type function. Received undefi
40
42
at jiti (<root >/dist/jiti)
41
43
at Object.<anonymous > (<root >/bin/jiti)
42
44
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)
44
46
at Module.load (internal/modules/cjs/loader)
45
- at Function. Module._load (internal/modules/cjs/loader)
47
+ at Module._load (internal/modules/cjs/loader)
46
48
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main)
47
49
at internal/main/run_main_module {
48
50
code : ' ERR_INVALID_ARG_TYPE'
49
- } "
51
+ }
52
+
53
+ Node.js v18.16.0"
50
54
`;
51
55
52
56
exports[`fixtures > error-runtime > stdout 1`] = `""`;
@@ -64,9 +68,9 @@ exports[`fixtures > esm > stdout 1`] = `
64
68
' at jiti (<root>/dist/jiti)' ,
65
69
' at Object.<anonymous> (<root>/bin/jiti)' ,
66
70
' 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)' ,
68
72
' at Module.load (internal/modules/cjs/loader)' ,
69
- ' at Function. Module._load (internal/modules/cjs/loader)' ,
73
+ ' at Module._load (internal/modules/cjs/loader)' ,
70
74
' at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main)' ,
71
75
' at internal/main/run_main_module'
72
76
]
0 commit comments