Is it possible to have teardown methods that run after every test in qUnit? If not, are there any plugins around that will do this?
qUnit Teardown method
Asked Answered
You can pass it in the module function like this:
module( "name", {teardown: function() {...}});
You want to register a function with QUnit.testDone(func).
I have an example here:
How do I run a function before each test when using qUnit?
© 2022 - 2024 — McMap. All rights reserved.