Reset the env state between parallel batches

This commit is contained in:
Steve Gravrock
2022-07-29 08:34:49 -07:00
parent fcbab02b2d
commit 3a43871901
8 changed files with 203 additions and 2 deletions

View File

@@ -22,6 +22,12 @@ getJasmineRequireObj().SuiteBuilder = function(j$) {
this.focusedRunables = [];
}
parallelReset() {
this.topSuite.removeChildren();
this.totalSpecsDefined = 0;
this.focusedRunables = [];
}
describe(description, definitionFn) {
ensureIsFunction(definitionFn, 'describe');
const suite = this.suiteFactory_(description);