@@ -13,7 +13,7 @@ import type { BuildConfig, TargetPlatform } from "../types.js";
1313import { green , red , yellow } from "../utils/colors.mjs" ;
1414import { rm_r } from "../utils/filesystem.mjs" ;
1515import { getIOSSimulatorName , installPods } from "./test-apple.mts" ;
16- import { $ , $$ , test } from "./test-e2e.mts" ;
16+ import { $ , $$ , DEFAULT_SPAWN_OPTIONS , test } from "./test-e2e.mts" ;
1717
1818type PlatformConfig = {
1919 name : string ;
@@ -364,8 +364,8 @@ if (platforms.length === 0) {
364364 . then ( ( ) => {
365365 showBanner ( "Initialize new app" ) ;
366366 $ (
367- PACKAGE_MANAGER ,
368- "init-test-app " ,
367+ process . argv0 ,
368+ "../scripts/ init.mjs " ,
369369 "--destination" ,
370370 "template-example" ,
371371 "--name" ,
@@ -379,7 +379,7 @@ if (platforms.length === 0) {
379379 . then ( ( ) => {
380380 showBanner ( "Reconfigure existing app" ) ;
381381 const args = [
382- "configure-test-app " ,
382+ "../scripts/ configure.mjs " ,
383383 "-p" ,
384384 "android" ,
385385 "-p" ,
@@ -391,10 +391,7 @@ if (platforms.length === 0) {
391391 "-p" ,
392392 "windows" ,
393393 ] ;
394- const { status } = spawnSync ( PACKAGE_MANAGER , args , {
395- stdio : "inherit" ,
396- shell : process . platform === "win32" ,
397- } ) ;
394+ const { status } = spawnSync ( process . argv0 , args , DEFAULT_SPAWN_OPTIONS ) ;
398395 if ( status !== 1 ) {
399396 throw new Error ( "Expected an error" ) ;
400397 }
0 commit comments