@@ -87,14 +87,17 @@ const PLATFORM_CONFIG: Record<TargetPlatform, PlatformConfig> = {
8787 name : "Windows" ,
8888 engines : [ "hermes" ] ,
8989 isAvailable : ( ) => process . platform === "win32" ,
90- prebuild : ( ) => {
90+ prebuild : ( { variant } ) => {
9191 rm_r ( "windows/ExperimentalFeatures.props" ) ;
92- $ (
93- PACKAGE_MANAGER ,
94- "install-windows-test-app" ,
92+ const args = [
9593 "--msbuildprops" ,
96- "WindowsTargetPlatformVersion=10.0.26100.0"
97- ) ;
94+ "WindowsTargetPlatformVersion=10.0.26100.0" ,
95+ "--use-nuget" ,
96+ ] ;
97+ if ( variant === "fabric" ) {
98+ args . push ( "--use-fabric" ) ;
99+ }
100+ $ ( PACKAGE_MANAGER , "install-windows-test-app" , ...args ) ;
98101 return Promise . resolve ( ) ;
99102 } ,
100103 requiresManualTesting : true ,
@@ -277,6 +280,11 @@ function reset(rootDir: string) {
277280 }
278281
279282 $ ( "git" , "checkout" , "--quiet" , "." ) ;
283+ // We currently use circular symlinks for testing purposes
284+ // (e.g. `example/node_modules/react-native-test-app` points to `../..`).
285+ // On Windows, `git clean` will be significantly slower if we don't remove
286+ // this symlink first as it will try to crawl recursively into it.
287+ rm_r ( "example/node_modules/react-native-test-app" ) ;
280288 $ (
281289 "git" ,
282290 "clean" ,
0 commit comments