test(web): avoid shadowing the PowerShell profile variable (M8)

Rename the test-only profile directory variable; the actual-script release/dev regression still passes.
This commit is contained in:
Mex authored and GitHub committed 2026-11-19 22:19:33 +01:00
1 parent 881cd625fa
commit 87e6cdc037
1 file changed
+2 -2
+2 -2
View File
@@ -45,8 +45,8 @@ try {
[IO.File]::WriteAllText($scriptPath, $source)
$env:CARGO_TARGET_DIR = if ($dev) { Join-Path $scratch 'target[2]' } else { $null }
$target = if ($dev) { $env:CARGO_TARGET_DIR } else { Join-Path $checkout 'target' }
$profile = if ($dev) { 'debug' } else { 'web' }
$script:expectedWasm = Join-Path $target "wasm32-unknown-unknown/$profile/anicraft.wasm"
$profileDir = if ($dev) { 'debug' } else { 'web' }
$script:expectedWasm = Join-Path $target "wasm32-unknown-unknown/$profileDir/anicraft.wasm"
$calls = [Collections.Generic.List[object]]::new()
& $scriptPath -Dev:$dev
Assert ($calls.Count -eq 2 -and $calls[0][0] -eq 'build' -and $calls[1][0] -eq 'run') 'missing build or guide call'