You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to call some cleanup action when all tests are finished. What is the recommended way to do this?
E.g. something like:
setup();
test("Some test", function (t) { ... t.end(); });
test("Some other test", function (t) { ... t.end(); });
test.on("end", function () { cleanup(); });
I tried on('end') and on('done') but that didn't work. It seems to work on the return value from test(), so I guess a workaround would be to wrap all tests in another test, but I'd like to avoid another level.
The text was updated successfully, but these errors were encountered:
I'd like to call some cleanup action when all tests are finished. What is the recommended way to do this?
E.g. something like:
I tried
on('end')
andon('done')
but that didn't work. It seems to work on the return value fromtest()
, so I guess a workaround would be to wrap all tests in anothertest
, but I'd like to avoid another level.The text was updated successfully, but these errors were encountered: