Skip to content

Commit 1ca5b5f

Browse files
committed
Add guideline to avoid using InModuleScope when testing public commands
1 parent 1dce6e4 commit 1ca5b5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/instructions/dsc-community-style-guidelines-command-unit-tests.instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ that both edge cases and common use cases are tested.
2626

2727
Testing commands or functions, assign to $null when command return object that are not used in test.
2828

29+
Never use `InModuleScope` when testing public commands.
30+
2931
All public commands should always have a test to validate parameter sets
3032
using this template. For commands with a single parameter set:
3133

0 commit comments

Comments
 (0)