Custom Assertions for v6 #2846
claudiospizzi
started this conversation in
General
Replies: 2 comments 5 replies
|
At the moment there is no way to plug-into the new should style of assertions. I am not sure how to best expose that to users. |
0 replies
|
Maybe we start adding a note to the official docs, that this is currently not supported in v6 with the new assertions? The workaround is always having a lot of |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all
We currently use a bunch of custom assertions in v5 and would like to migrated them to v6 in the future, so that the old
Should -Beis not used anymore. We checked the docs for v6, there is a section for custom assertions in v5 but not v6: Custom assertions (v5)As the assertion library is the big change for v6, is there a documentation about creating custom assertions with the new
Should-Bestyle? If yes, would be great to include that to the official Pester v6 docs. I think the core issue where we struggle is the knowledge, how we have to return successful and failed tests in self-created custom assertions.Thank you.
All reactions