mocha-steps icon indicating copy to clipboard operation
mocha-steps copied to clipboard

is it possible to detect if the current test is a mocha-step from beforeEach?

Open andykais opened this issue 4 years ago • 1 comments

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?

andykais avatar Apr 23 '20 22:04 andykais

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!

rprieto avatar May 10 '20 15:05 rprieto