@@ -133,6 +133,7 @@ test.suite('ts-node', (test) => {
133133 testsDirRequire . resolve ( 'ts-node/node10/tsconfig.json' ) ;
134134 testsDirRequire . resolve ( 'ts-node/node12/tsconfig.json' ) ;
135135 testsDirRequire . resolve ( 'ts-node/node14/tsconfig.json' ) ;
136+ testsDirRequire . resolve ( 'ts-node/node16/tsconfig.json' ) ;
136137 } ) ;
137138
138139 test . suite ( 'cli' , ( test ) => {
@@ -683,7 +684,8 @@ test.suite('ts-node', (test) => {
683684 semver . gte ( ts . version , '3.5.0' ) &&
684685 semver . gte ( process . versions . node , '14.0.0' )
685686 ) {
686- test ( 'implicitly uses @tsconfig/node14 compilerOptions when both TS and node versions support it' , async ( t ) => {
687+ test ( 'implicitly uses @tsconfig/node14 or @tsconfig/node16 compilerOptions when both TS and node versions support it' , async ( t ) => {
688+ // node14 and node16 configs are identical, hence the "or"
687689 const {
688690 context : { tempDir } ,
689691 } = t ;
@@ -708,7 +710,7 @@ test.suite('ts-node', (test) => {
708710 expect ( stdout2 ) . to . equal ( '10n\n' ) ;
709711 } ) ;
710712 } else {
711- test ( 'implicitly uses @tsconfig/* lower than node14 (node10 or node12) when either TS or node versions do not support @tsconfig/node14' , async ( {
713+ test ( 'implicitly uses @tsconfig/* lower than node14 (node12) when either TS or node versions do not support @tsconfig/node14' , async ( {
712714 context : { tempDir } ,
713715 } ) => {
714716 const { err, stdout, stderr } = await exec ( `${ BIN_PATH } -pe 10n` , {
@@ -778,6 +780,7 @@ test.suite('ts-node', (test) => {
778780 test ( `ts-node/node10/tsconfig.json` , macro , 'node10' ) ;
779781 test ( `ts-node/node12/tsconfig.json` , macro , 'node12' ) ;
780782 test ( `ts-node/node14/tsconfig.json` , macro , 'node14' ) ;
783+ test ( `ts-node/node16/tsconfig.json` , macro , 'node16' ) ;
781784 }
782785 ) ;
783786 }
0 commit comments