You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use top-level BeforeAll to recompute variables for Run phase
Pester v5 Discovery and Run are separate executions. Script-level
variables set during Discovery do not exist during Run, so referencing
them via $script: in a Describe BeforeAll yields null.
Replace the Describe-level BeforeAll bridge with a top-level BeforeAll
that recomputes all variables from $Path, which Pester re-passes via
container data to both phases.
0 commit comments