-
-
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
Option to disable old assertions #2495
Comments
Looks good, but we could shorten it to Could also be |
I agree. |
Or maybe |
If it is used together with a value |
We could also use |
Okay |
Checklist
Summary of the feature request
When migrating to Assert assertions I want to disable them so I know that I did not migrate some of them.
When I already migrated, I want to keep the old assertions disabled, and they should fail with informative message when used.
How should it work?
Pester option is checked in all Shoud assertions and makes them fail when the option is disabled.
$pesterConfig.should.DisableV5
(default false)Should
Add-ShouldOperator Get-ShouldOperator
- skipping this is hard to do we don't have the settings at that point, and there is a lot of logic around it.The text was updated successfully, but these errors were encountered: