@@ -264,7 +264,12 @@ jobs:
264264 export VP_VPDIRS_AWARE=1
265265 unset VP_HOME VP_BIN_DIR VP_DATA_DIR VP_CACHE_DIR
266266 unset XDG_DATA_HOME XDG_CACHE_HOME XDG_CONFIG_HOME XDG_STATE_HOME
267- VP_LOCAL_TGZ="$FAKE_TGZ" VP_VERSION=local-test bash packages/cli/install.sh
267+ OUTPUT=$(mktemp)
268+ VP_LOCAL_TGZ="$FAKE_TGZ" VP_VERSION=local-test bash packages/cli/install.sh | tee "$OUTPUT"
269+
270+ grep -F "Install locations:" "$OUTPUT"
271+ grep -F "Data directory: ~/.local/share/vite-plus" "$OUTPUT"
272+ grep -F "Bin directory: ~/.local/share/vite-plus/bin" "$OUTPUT"
268273
269274 test ! -d "$FRESH/.vite-plus"
270275 test -e "$FRESH/.local/share/vite-plus/current"
@@ -436,6 +441,18 @@ jobs:
436441 Write-Error "Expected the pre-split fallback notice in installer output"
437442 exit 1
438443 }
444+ if (-not (Select-String -Path install-output.txt -Pattern "Install locations:" -SimpleMatch -Quiet)) {
445+ Write-Error "Expected install locations in installer output"
446+ exit 1
447+ }
448+ if (-not (Select-String -Path install-output.txt -Pattern "Data directory: ~\.vite-plus" -SimpleMatch -Quiet)) {
449+ Write-Error "Expected the single-root data directory in installer output"
450+ exit 1
451+ }
452+ if (-not (Select-String -Path install-output.txt -Pattern "Bin directory: ~\.vite-plus\bin" -SimpleMatch -Quiet)) {
453+ Write-Error "Expected the single-root bin directory in installer output"
454+ exit 1
455+ }
439456
440457 - name : Verify monolithic layout
441458 shell : pwsh
@@ -489,8 +506,10 @@ jobs:
489506 echo "$output"
490507 # Verify installation succeeds (not a fatal error)
491508 echo "$output" | grep -q "successfully installed"
492- # Verify fallback message shows binary location
493- echo "$output" | grep -q "vp was installed to:"
509+ # Verify the success message shows the single-root locations
510+ echo "$output" | grep -q "Install locations:"
511+ echo "$output" | grep -q "Data directory: ~/.vite-plus"
512+ echo "$output" | grep -q "Bin directory: ~/.vite-plus/bin"
494513 # Verify fallback message shows manual instructions
495514 echo "$output" | grep -q "Or run vp directly:"
496515 # Verify the permission warning was shown
@@ -1401,7 +1420,17 @@ jobs:
14011420 New-Item -ItemType Directory -Force -Path $root | Out-Null
14021421 New-Item -ItemType File -Force -Path $env:VP_LOCAL_TGZ | Out-Null
14031422
1404- & ./packages/cli/install.ps1
1423+ $output = (& ./packages/cli/install.ps1 *>&1) | Out-String
1424+ Write-Host $output
1425+ if (-not $output.Contains("Install locations:")) {
1426+ throw "install.ps1 did not print install locations"
1427+ }
1428+ if (-not $output.Contains("Data directory: $($env:VP_DATA_DIR)")) {
1429+ throw "install.ps1 did not print the split data directory"
1430+ }
1431+ if (-not $output.Contains("Bin directory: $($env:VP_BIN_DIR)")) {
1432+ throw "install.ps1 did not print the split bin directory"
1433+ }
14051434
14061435 function Get-DirMap([string]$VpBinary) {
14071436 $env:VP_DUMP_DIRS = "1"
0 commit comments