|
|
@ -450,13 +450,14 @@ async function run_test_variant(
|
|
|
|
'Expected component to unmount and leave nothing behind after it was destroyed'
|
|
|
|
'Expected component to unmount and leave nothing behind after it was destroyed'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: This seems useless, unhandledRejection is only triggered on the next task
|
|
|
|
// uncaught errors like during template effects flush
|
|
|
|
// by which time the test has already finished and the next test resets it to null above
|
|
|
|
|
|
|
|
if (unhandled_rejection) {
|
|
|
|
if (unhandled_rejection) {
|
|
|
|
|
|
|
|
if (!config.expect_unhandled_rejections) {
|
|
|
|
throw unhandled_rejection; // eslint-disable-line no-unsafe-finally
|
|
|
|
throw unhandled_rejection; // eslint-disable-line no-unsafe-finally
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
} catch (err) {
|
|
|
|
} catch (err) {
|
|
|
|
if (config.runtime_error) {
|
|
|
|
if (config.runtime_error) {
|
|
|
|
assert.include((err as Error).message, config.runtime_error);
|
|
|
|
assert.include((err as Error).message, config.runtime_error);
|
|
|
|