-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update New-MockObject examples to use type object as input #2609
base: main
Are you sure you want to change the base?
Conversation
CI failing, but works on my machine (and devcontainer). Help, someone? 😅
The line is |
I also don't see it locally, some kind of confusion where [] is misinterpreted as indexing operator? I vaguely remember this as being some problem somewhere. |
I know what is it now :P |
you yourself told me what to do last time, and I saw it recently in zlocation, the bug with classes when running under coverage / profiler. |
Yeah, was about to add the ctor and a comment myself. Forgot CI runs with CC |
/backport to rel/5.x.x |
Started backporting to rel/5.x.x: https://github.com/pester/Pester/actions/runs/12837313182 |
PR Summary
Updates
New-MockObject
with examples for using type objects to reference classes.Fix #2564
PR Checklist
Create Pull Request
to mark it as a draft. PR can be markedReady for review
when it's ready.