jeudi 18 juillet 2019

rerun first test if second fails, mocha, javascript

I currently have

describeA();
describeB();

both A and B have it() tests. Is there a way to call describeA to run again, in describeB() after() function if any "it" fails in B? So in describeB after function it would have:

after(){

if(haveFailedTests)

// how to call run describeA();
}

Aucun commentaire:

Enregistrer un commentaire