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

@@ -592,6 +592,14 @@ describe('Env', function() {
expect(id).toEqual(env.topSuite().id);
});
});
it('should not reset the topSuite if parallelReset was called since the last run', async function() {
await env.execute();
env.parallelReset();
spyOn(jasmineUnderTest.Suite.prototype, 'reset');
await env.execute();
expect(jasmineUnderTest.Suite.prototype.reset).not.toHaveBeenCalled();
});
});
describe('#spyOnGlobalErrorsAsync', function() {