mocha-steps
mocha-steps copied to clipboard
is it possible to detect if the current test is a mocha-step from beforeEach?
Hi, I have some programatical cleanup happening in my beforeEach block for my tests. I do not want this cleanup to happen in between steps. Is it possible to know if the current test is a mocha step?
Hi, I believe beforeEach
happens before the step is even called, so no I don't think it's possible to know. However if I'm wrong and you find a way, I'll be happy to merge a PR. Thanks!