@@ -285,7 +285,12 @@ jobs:
285285 export VP_VPDIRS_AWARE=1
286286 unset VP_HOME VP_BIN_DIR VP_DATA_DIR VP_CACHE_DIR
287287 unset XDG_DATA_HOME XDG_CACHE_HOME XDG_CONFIG_HOME XDG_STATE_HOME
288- VP_LOCAL_TGZ="$FAKE_TGZ" VP_VERSION=local-test bash packages/cli/install.sh
288+ OUTPUT=$(mktemp)
289+ VP_LOCAL_TGZ="$FAKE_TGZ" VP_VERSION=local-test bash packages/cli/install.sh | tee "$OUTPUT"
290+
291+ grep -F "Install locations:" "$OUTPUT"
292+ grep -F "Data directory: ~/.local/share/vite-plus" "$OUTPUT"
293+ grep -F "Bin directory: ~/.local/share/vite-plus/bin" "$OUTPUT"
289294
290295 test ! -d "$FRESH/.vite-plus"
291296 test -e "$FRESH/.local/share/vite-plus/current"
@@ -457,6 +462,18 @@ jobs:
457462 Write-Error "Expected the pre-split fallback notice in installer output"
458463 exit 1
459464 }
465+ if (-not (Select-String -Path install-output.txt -Pattern "Install locations:" -SimpleMatch -Quiet)) {
466+ Write-Error "Expected install locations in installer output"
467+ exit 1
468+ }
469+ if (-not (Select-String -Path install-output.txt -Pattern "Data directory: ~\.vite-plus" -SimpleMatch -Quiet)) {
470+ Write-Error "Expected the single-root data directory in installer output"
471+ exit 1
472+ }
473+ if (-not (Select-String -Path install-output.txt -Pattern "Bin directory: ~\.vite-plus\bin" -SimpleMatch -Quiet)) {
474+ Write-Error "Expected the single-root bin directory in installer output"
475+ exit 1
476+ }
460477
461478 - name : Verify monolithic layout
462479 shell : pwsh
@@ -510,8 +527,10 @@ jobs:
510527 echo "$output"
511528 # Verify installation succeeds (not a fatal error)
512529 echo "$output" | grep -q "successfully installed"
513- # Verify fallback message shows binary location
514- echo "$output" | grep -q "vp was installed to:"
530+ # Verify the success message shows the single-root locations
531+ echo "$output" | grep -q "Install locations:"
532+ echo "$output" | grep -q "Data directory: ~/.vite-plus"
533+ echo "$output" | grep -q "Bin directory: ~/.vite-plus/bin"
515534 # Verify fallback message shows manual instructions
516535 echo "$output" | grep -q "Or run vp directly:"
517536 # Verify the permission warning was shown
@@ -1422,7 +1441,17 @@ jobs:
14221441 New-Item -ItemType Directory -Force -Path $root | Out-Null
14231442 New-Item -ItemType File -Force -Path $env:VP_LOCAL_TGZ | Out-Null
14241443
1425- & ./packages/cli/install.ps1
1444+ $output = (& ./packages/cli/install.ps1 *>&1) | Out-String
1445+ Write-Host $output
1446+ if (-not $output.Contains("Install locations:")) {
1447+ throw "install.ps1 did not print install locations"
1448+ }
1449+ if (-not $output.Contains("Data directory: $($env:VP_DATA_DIR)")) {
1450+ throw "install.ps1 did not print the split data directory"
1451+ }
1452+ if (-not $output.Contains("Bin directory: $($env:VP_BIN_DIR)")) {
1453+ throw "install.ps1 did not print the split bin directory"
1454+ }
14261455
14271456 function Get-DirMap([string]$VpBinary) {
14281457 $env:VP_DUMP_DIRS = "1"
0 commit comments