@@ -95,10 +95,8 @@ async function getVariantBuildCommand(
9595
9696 if ( matchingVariant ) {
9797 return {
98- buildCommand : `volta run ${ matchingVariant [ 'build-command' ] } ` ,
99- assertCommand : matchingVariant [ 'assert-command' ]
100- ? `volta run ${ matchingVariant [ 'assert-command' ] } `
101- : 'volta run pnpm test:assert' ,
98+ buildCommand : matchingVariant [ 'build-command' ] || 'pnpm test:build' ,
99+ assertCommand : matchingVariant [ 'assert-command' ] || 'pnpm test:assert' ,
102100 testLabel : matchingVariant . label ,
103101 matchedVariantLabel : matchingVariant . label ,
104102 } ;
@@ -110,8 +108,8 @@ async function getVariantBuildCommand(
110108 }
111109
112110 return {
113- buildCommand : 'volta run pnpm test:build' ,
114- assertCommand : 'volta run pnpm test:assert' ,
111+ buildCommand : 'pnpm test:build' ,
112+ assertCommand : 'pnpm test:assert' ,
115113 testLabel : testAppPath ,
116114 } ;
117115}
@@ -198,8 +196,8 @@ async function run(): Promise<void> {
198196 const { buildCommand, assertCommand, testLabel, matchedVariantLabel } = variantLabel
199197 ? await getVariantBuildCommand ( join ( tmpDirPath , 'package.json' ) , variantLabel , testAppPath )
200198 : {
201- buildCommand : 'volta run pnpm test:build' ,
202- assertCommand : 'volta run pnpm test:assert' ,
199+ buildCommand : 'pnpm test:build' ,
200+ assertCommand : 'pnpm test:assert' ,
203201 testLabel : testAppPath ,
204202 } ;
205203
@@ -212,9 +210,7 @@ async function run(): Promise<void> {
212210 await asyncExec ( buildCommand , { env, cwd } ) ;
213211
214212 console . log ( `Testing ${ testLabel } ...` ) ;
215- // Use the variant's assert command if available, otherwise use default
216- // Construct the full command as a string to handle environment variables (e.g., NODE_VERSION=20)
217- // and append test flags
213+ // Append test flags to assert command
218214 const fullAssertCommand = testFlags . length > 0 ? `${ assertCommand } ${ testFlags . join ( ' ' ) } ` : assertCommand ;
219215 await asyncExec ( fullAssertCommand , { env, cwd } ) ;
220216
0 commit comments