Skip to content

Commit 1f32039

Browse files
committed
Clarify cleanup guideline to specify avoiding try-catch-finally for cleanup in tests
1 parent 73260c3 commit 1f32039

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 for cleanup, use `AfterAll` or `AfterEach`
50+
- Avoid try-catch-finally for cleanup, use `AfterAll` or `AfterEach`
5151
- Avoid unnecessary remove/recreate cycles

0 commit comments

Comments
 (0)