Parallel: Fixed reporting of exceptions thrown by a describe

This commit is contained in:
Steve Gravrock
2022-09-18 12:10:34 -07:00
parent 735ce6f758
commit 6ada55ff77
7 changed files with 98 additions and 0 deletions

View File

@@ -495,6 +495,7 @@ getJasmineRequireObj().Env = function(j$) {
this.parallelReset = function() {
// TODO: ensure that autoCleanClosures was false
suiteBuilder.parallelReset();
runner.parallelReset();
};
/**

View File

@@ -27,6 +27,10 @@ getJasmineRequireObj().Runner = function(j$) {
];
}
parallelReset() {
this.executedBefore_ = false;
}
async execute(runablesToRun) {
if (this.executedBefore_) {
this.topSuite_.reset();

View File

@@ -24,6 +24,7 @@ getJasmineRequireObj().SuiteBuilder = function(j$) {
parallelReset() {
this.topSuite.removeChildren();
this.topSuite.reset();
this.totalSpecsDefined = 0;
this.focusedRunables = [];
}