Pester
Pester copied to clipboard
Validate Should -Invoke is invoked in specified -Scope blocktype
PR Summary
Throw in Should -Invoke when ex. -Scope Describe is used while not inside any Describe-blocks.
Adds regression tests for above scenarios, -Scope It while not in It and -Scope <negative>.
Fix #2187
PR Checklist
- [x] PR has meaningful title
- [x] Summary describes changes
- [x] PR is ready to be merged
- If not, use the arrow next to
Create Pull Requestto mark it as a draft. PR can be markedReady for reviewwhen it's ready.
- If not, use the arrow next to
- [x] Tests are added/update (if required)
- [ ] Documentation is updated/added (if required)