Skip to content

Commit 73260c3

Browse files
committed
Refine cleanup guidelines by simplifying the instruction to avoid try-catch blocks in tests
1 parent 682564d commit 73260c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/instructions/dsc-community-style-guidelines-pester.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ applyTo: "**/*.[Tt]ests.ps1"
4747
- Keep results and assertions in same `It` block
4848
- Cover all scenarios and code paths
4949
- Use `BeforeEach` and `AfterEach` sparingly
50-
- Avoid try-catch blocks in tests, use `AfterAll` or `AfterEach` for cleanup
50+
- Avoid try-catch for cleanup, use `AfterAll` or `AfterEach`
5151
- Avoid unnecessary remove/recreate cycles

0 commit comments

Comments
 (0)