Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/assertions/should-command.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down