Closed jritzi closed 2 years ago
Uncaught exceptions in a ctx.run() block are silently ignored and do not cause the test to fail. For example, this test passes without printing the error to the console:
ctx.run()
it('should fail', () => { ctx.run(() => { throw new Error('error'); }); });
The same test fails when removing ctx.run(), so it should continue to fail (and log the error) when done using a ComponentContext.
ComponentContext
Looks like this was already fixed in some previous version. I added a test to make sure it stays fixed.
Uncaught exceptions in a
ctx.run()
block are silently ignored and do not cause the test to fail. For example, this test passes without printing the error to the console:The same test fails when removing
ctx.run()
, so it should continue to fail (and log the error) when done using aComponentContext
.