File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/engine-loader/test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -452,7 +452,7 @@ test('putout: loader: sync: load ESM: code', (t) => {
452452 plugins : [ '@putout/plugin-apply-nullish-coalescing' ] ,
453453 } ) ;
454454
455- if ( process . version . startsWith ( 'v23' ) || process . version . startsWith ( 'v22 ') )
455+ if ( process . version . startsWith ( 'v2 ' ) )
456456 return t . notOk ( error ) ;
457457
458458 t . equal ( error . code , 'ERR_REQUIRE_ESM' ) ;
@@ -465,7 +465,7 @@ test('putout: loader: sync: load ESM: message', (t) => {
465465 plugins : [ '@putout/plugin-apply-nullish-coalescing' ] ,
466466 } ) ;
467467
468- if ( process . version . startsWith ( 'v23' ) || process . version . startsWith ( 'v22 ') )
468+ if ( process . version . startsWith ( 'v2 ' ) )
469469 return t . notOk ( error ) ;
470470
471471 t . equal ( error . message , `☝️ Looks like '@putout/plugin-apply-nullish-coalescing' is ESM, use 'await putoutAsync()' instead` ) ;
@@ -478,7 +478,7 @@ test('putout: loader: sync: load ESM: name', (t) => {
478478 plugins : [ 'apply-nullish-coalescing' ] ,
479479 } ) ;
480480
481- if ( process . version . startsWith ( 'v23' ) || process . version . startsWith ( 'v22 ') )
481+ if ( process . version . startsWith ( 'v2 ' ) )
482482 return t . notOk ( error ) ;
483483
484484 t . equal ( error . name , 'apply-nullish-coalescing' ) ;
You can’t perform that action at this time.
0 commit comments