Skip to content

Conversation

@jakerella
Copy link

There was an issue with unhandled rejected Promises because th primary async function did not return a Promise. This PR adds a try...catch block inside the async function to catch any errors generated inside an awaited Promise.

It also adds a call to QUnit.start() in situations where QUnit.config.autostart is false... I actually recommend this being the default scenario and adding a recommendation to set this inside the QUnit test page, otherwise you can get weird scenarios (I was anyway).

…lly capturing errors generated in awaited Promises because no Promise was returned from the async fn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant