Feature request: Ability to run before()/after() on one it() test without putting test in a context()/describe() #18802
bvandercar
started this conversation in
General
Replies: 1 comment
-
Also, if anyone has any idea on how to do this with existing features, please let me know! |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to run test setup/ cleanup in before() and after() hooks on one single
it()
without putting the test inside a context() or describe(), as I don't want to create/see a whole new subsection of the report just for this one test.Here's how I imagine the code would look:
so basically the config arg of
it
statements would allow for an additionalbefore
orafter
hook arg.An alternative solution would be to allow for passing of no title string in context/describe:
and when no title string is passed, allow for hooks to be in this subsection but do not create a visible subsection (indents) in the reporter.
Beta Was this translation helpful? Give feedback.
All reactions