@@ -682,10 +682,7 @@ describe(`when called on a project without any defined packageManager`, () => {
682682 } ) ;
683683 } ) ;
684684
685- it ( `should modify package.json if enabled by .corepack.env` , async t => {
686- // Skip that test on Node.js 18.x as it lacks support for .env files.
687- if ( process . version . startsWith ( `v18.` ) ) t . skip ( ) ;
688-
685+ it ( `should modify package.json if enabled by .corepack.env` , async ( ) => {
689686 await xfs . mktempPromise ( async cwd => {
690687 await xfs . writeJsonPromise ( ppath . join ( cwd , `package.json` as Filename ) , {
691688 // empty package.json file
@@ -1343,10 +1340,7 @@ describe(`should pick up COREPACK_INTEGRITY_KEYS from env`, () => {
13431340 } ) ;
13441341 } ) ;
13451342
1346- it ( `from .corepack.env file` , async t => {
1347- // Skip that test on Node.js 18.x as it lacks support for .env files.
1348- if ( process . version . startsWith ( `v18.` ) ) t . skip ( ) ;
1349-
1343+ it ( `from .corepack.env file` , async ( ) => {
13501344 await xfs . mktempPromise ( async cwd => {
13511345 await xfs . writeJsonPromise ( ppath . join ( cwd , `package.json` as Filename ) , {
13521346 } ) ;
@@ -1366,10 +1360,7 @@ describe(`should pick up COREPACK_INTEGRITY_KEYS from env`, () => {
13661360 } ) ;
13671361 } ) ;
13681362
1369- it ( `from env file defined by COREPACK_ENV_FILE` , async t => {
1370- // Skip that test on Node.js 18.x as it lacks support for .env files.
1371- if ( process . version . startsWith ( `v18.` ) ) t . skip ( ) ;
1372-
1363+ it ( `from env file defined by COREPACK_ENV_FILE` , async ( ) => {
13731364 await xfs . mktempPromise ( async cwd => {
13741365 await xfs . writeJsonPromise ( ppath . join ( cwd , `package.json` as Filename ) , {
13751366 } ) ;
@@ -1416,10 +1407,7 @@ describe(`should pick up COREPACK_INTEGRITY_KEYS from env`, () => {
14161407 } ) ;
14171408 } ) ;
14181409
1419- it ( `should ignore .corepack.env file if COREPACK_ENV_FILE is set to 0` , async t => {
1420- // Skip that test on Node.js 18.x as it lacks support for .env files.
1421- if ( process . version . startsWith ( `v18.` ) ) t . skip ( ) ;
1422-
1410+ it ( `should ignore .corepack.env file if COREPACK_ENV_FILE is set to 0` , async ( ) => {
14231411 await xfs . mktempPromise ( async cwd => {
14241412 await xfs . writeJsonPromise ( ppath . join ( cwd , `package.json` as Filename ) , {
14251413 } ) ;
@@ -1442,10 +1430,7 @@ describe(`should pick up COREPACK_INTEGRITY_KEYS from env`, () => {
14421430 } ) ;
14431431 } ) ;
14441432
1445- it ( `from env file defined by COREPACK_ENV_FILE` , async t => {
1446- // Skip that test on Node.js 18.x as it lacks support for .env files.
1447- if ( process . version . startsWith ( `v18.` ) ) t . skip ( ) ;
1448-
1433+ it ( `from env file defined by COREPACK_ENV_FILE` , async ( ) => {
14491434 process . env . COREPACK_ENV_FILE = `.other.env` ;
14501435 await xfs . mktempPromise ( async cwd => {
14511436 await xfs . writeJsonPromise ( ppath . join ( cwd , `package.json` as Filename ) , {
0 commit comments