Pester icon indicating copy to clipboard operation
Pester copied to clipboard

Validate Should -Invoke is invoked in specified -Scope blocktype

Open fflaten opened this issue 3 years ago • 0 comments

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 Request to mark it as a draft. PR can be marked Ready for review when it's ready.
  • [x] Tests are added/update (if required)
  • [ ] Documentation is updated/added (if required)

fflaten avatar Aug 05 '22 22:08 fflaten