@@ -450,7 +450,7 @@ effectIt.layer(NodeServices.layer)("resolveSpawnCommand", (it) => {
450450} ) ;
451451
452452effectIt . layer ( NodeServices . layer ) ( "resolveWindowsEnvironment" , ( it ) => {
453- it . effect ( "returns the baseline no-profile PATH patch when node is already available " , ( ) =>
453+ it . effect ( "uses known CLI directories as a fallback without changing shell PATH priority " , ( ) =>
454454 Effect . gen ( function * ( ) {
455455 const readEnvironment = vi . fn (
456456 ( _names : ReadonlyArray < string > , options ?: { loadProfile ?: boolean } ) =>
@@ -473,15 +473,15 @@ effectIt.layer(NodeServices.layer)("resolveWindowsEnvironment", (it) => {
473473 ) ,
474474 ) . toEqual ( {
475475 PATH : [
476+ "C:\\Shell\\Bin" ,
477+ "C:\\Windows\\System32" ,
476478 "C:\\Users\\testuser\\AppData\\Roaming\\npm" ,
477479 "C:\\Users\\testuser\\AppData\\Local\\Programs\\nodejs" ,
478480 "C:\\Users\\testuser\\AppData\\Local\\Volta\\bin" ,
479481 "C:\\Users\\testuser\\AppData\\Local\\pnpm" ,
480482 "C:\\Users\\testuser\\.local\\bin" ,
481483 "C:\\Users\\testuser\\.bun\\bin" ,
482484 "C:\\Users\\testuser\\scoop\\shims" ,
483- "C:\\Shell\\Bin" ,
484- "C:\\Windows\\System32" ,
485485 ] . join ( ";" ) ,
486486 } ) ;
487487 expect ( readEnvironment ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -522,14 +522,14 @@ effectIt.layer(NodeServices.layer)("resolveWindowsEnvironment", (it) => {
522522 PATH : [
523523 "C:\\Profile\\Node" ,
524524 "C:\\Windows\\System32" ,
525+ "C:\\Shell\\Bin" ,
525526 "C:\\Users\\testuser\\AppData\\Roaming\\npm" ,
526527 "C:\\Users\\testuser\\AppData\\Local\\Programs\\nodejs" ,
527528 "C:\\Users\\testuser\\AppData\\Local\\Volta\\bin" ,
528529 "C:\\Users\\testuser\\AppData\\Local\\pnpm" ,
529530 "C:\\Users\\testuser\\.local\\bin" ,
530531 "C:\\Users\\testuser\\.bun\\bin" ,
531532 "C:\\Users\\testuser\\scoop\\shims" ,
532- "C:\\Shell\\Bin" ,
533533 ] . join ( ";" ) ,
534534 FNM_DIR : "C:\\Users\\testuser\\AppData\\Roaming\\fnm" ,
535535 FNM_MULTISHELL_PATH : "C:\\Users\\testuser\\AppData\\Local\\fnm_multishells\\123" ,
@@ -566,11 +566,11 @@ effectIt.layer(NodeServices.layer)("resolveWindowsEnvironment", (it) => {
566566 ) ,
567567 ) . toEqual ( {
568568 PATH : [
569+ "C:\\Windows\\System32" ,
569570 "C:\\Users\\testuser\\AppData\\Roaming\\npm" ,
570571 "C:\\Users\\testuser\\.local\\bin" ,
571572 "C:\\Users\\testuser\\.bun\\bin" ,
572573 "C:\\Users\\testuser\\scoop\\shims" ,
573- "C:\\Windows\\System32" ,
574574 ] . join ( ";" ) ,
575575 FNM_DIR : "C:\\Users\\testuser\\AppData\\Roaming\\fnm" ,
576576 } ) ;
0 commit comments