diff --git a/src/test/index.spec.ts b/src/test/index.spec.ts index 1ec708099..244f8b63e 100644 --- a/src/test/index.spec.ts +++ b/src/test/index.spec.ts @@ -681,9 +681,10 @@ test.suite('ts-node', (test) => { })); if ( semver.gte(ts.version, '3.5.0') && - semver.gte(process.versions.node, '16.0.0') + semver.gte(process.versions.node, '14.0.0') ) { - test('implicitly uses @tsconfig/node16 compilerOptions when both TS and node versions support it', async (t) => { + test('implicitly uses @tsconfig/node14 or @tsconfig/node16 compilerOptions when both TS and node versions support it', async (t) => { + // node14 and node16 configs are identical, hence the "or" const { context: { tempDir }, } = t; @@ -708,7 +709,7 @@ test.suite('ts-node', (test) => { expect(stdout2).to.equal('10n\n'); }); } else { - test('implicitly uses @tsconfig/* lower than node16 (node12 or node14) when either TS or node versions do not support @tsconfig/node16', async ({ + test('implicitly uses @tsconfig/* lower than node14 (node12) when either TS or node versions do not support @tsconfig/node14', async ({ context: { tempDir }, }) => { const { err, stdout, stderr } = await exec(`${BIN_PATH} -pe 10n`, {