From 878b4af74d38e85e302ee8009387d75fee6b2aac Mon Sep 17 00:00:00 2001 From: Frode Flaten <3436158+fflaten@users.noreply.github.com> Date: Tue, 4 Aug 2026 18:40:52 +0000 Subject: [PATCH] Add tip about Should -Not Throw replacement for v6 assertions --- docs/assertions/should-command.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/assertions/should-command.mdx b/docs/assertions/should-command.mdx index cc688c42..7f3a0207 100644 --- a/docs/assertions/should-command.mdx +++ b/docs/assertions/should-command.mdx @@ -480,6 +480,9 @@ All `Should-*` assertions are listed below, grouped by the kind of check they pe #### Exception - [`Should-Throw`](../commands/Should-Throw.mdx) — Asserts that a script block throws an exception. +:::tip Missing Should-NotThrow? +Use `& { ... }` to invoke the scriptblock, call the function or assert on the result. Any unexpected errors will fail the test. +::: #### Mock