diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 980b7fbf..83292187 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - node: [16] + node: [18] fail-fast: false steps: diff --git a/test/__snapshots__/fixtures.test.ts.snap b/test/__snapshots__/fixtures.test.ts.snap index d7f9539a..b7f706bc 100644 --- a/test/__snapshots__/fixtures.test.ts.snap +++ b/test/__snapshots__/fixtures.test.ts.snap @@ -18,11 +18,13 @@ Error: ParseError: \`import\` can only be used in \`import /index.ts at Object. (/bin/jiti) at Module._compile (internal/modules/cjs/loader) - at Object.Module._extensions..js (internal/modules/cjs/loader) + at Module._extensions..js (internal/modules/cjs/loader) at Module.load (internal/modules/cjs/loader) - at Function.Module._load (internal/modules/cjs/loader) + at Module._load (internal/modules/cjs/loader) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main) - at internal/main/run_main_module" + at internal/main/run_main_module + +Node.js v18.16.0" `; exports[`fixtures > error-parse > stdout 1`] = `""`; @@ -40,13 +42,15 @@ TypeError: The \\"listener\\" argument must be of type function. Received undefi at jiti (/dist/jiti) at Object. (/bin/jiti) at Module._compile (internal/modules/cjs/loader) - at Object.Module._extensions..js (internal/modules/cjs/loader) + at Module._extensions..js (internal/modules/cjs/loader) at Module.load (internal/modules/cjs/loader) - at Function.Module._load (internal/modules/cjs/loader) + at Module._load (internal/modules/cjs/loader) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main) at internal/main/run_main_module { code: 'ERR_INVALID_ARG_TYPE' -}" +} + +Node.js v18.16.0" `; exports[`fixtures > error-runtime > stdout 1`] = `""`; @@ -64,9 +68,9 @@ exports[`fixtures > esm > stdout 1`] = ` 'at jiti (/dist/jiti)', 'at Object. (/bin/jiti)', 'at Module._compile (internal/modules/cjs/loader)', - 'at Object.Module._extensions..js (internal/modules/cjs/loader)', + 'at Module._extensions..js (internal/modules/cjs/loader)', 'at Module.load (internal/modules/cjs/loader)', - 'at Function.Module._load (internal/modules/cjs/loader)', + 'at Module._load (internal/modules/cjs/loader)', 'at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main)', 'at internal/main/run_main_module' ]