@@ -256,15 +256,7 @@ export interface TestPresetPrivate {
256256 __generator ?: string ; // Getting this from the config preset
257257}
258258
259- // v11+: execution.jobs can be an empty string (--parallel with no value).
260- // Widen the type from the API's number to number | string.
261- export interface TestExecutionOptions extends Omit < api . ExecutionOptions , 'jobs' > {
262- jobs ?: number | string ;
263- }
264-
265- export interface TestPreset extends Omit < api . TestPreset , 'execution' > , TestPresetPrivate , PresetPrivate {
266- execution ?: TestExecutionOptions ;
267- }
259+ export interface TestPreset extends api . TestPreset , TestPresetPrivate , PresetPrivate { }
268260
269261export interface PackagePresetPrivate {
270262 __binaryDir ?: string ; // Getting this from the config preset
@@ -2307,10 +2299,12 @@ export function testArgs(preset: TestPreset): string[] {
23072299 preset . execution . enableFailover && result . push ( '-F' ) ;
23082300 if ( preset . execution . jobs !== undefined ) {
23092301 // v11+: jobs can be an empty string meaning --parallel with no value (auto-detect).
2310- if ( preset . execution . jobs === '' ) {
2302+ // The API type currently declares jobs as number; will be updated to number | string.
2303+ const jobs = preset . execution . jobs as number | string ;
2304+ if ( jobs === '' ) {
23112305 result . push ( '--parallel' ) ;
23122306 } else {
2313- result . push ( '--parallel' , preset . execution . jobs . toString ( ) ) ;
2307+ result . push ( '--parallel' , jobs . toString ( ) ) ;
23142308 }
23152309 }
23162310 preset . execution . resourceSpecFile && result . push ( '--resource-spec-file' , preset . execution . resourceSpecFile ) ;
0 commit comments