Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runner hangs when promise rejects with undefined error #1015

Open
cowboyd opened this issue Oct 4, 2021 · 0 comments
Open

Runner hangs when promise rejects with undefined error #1015

cowboyd opened this issue Oct 4, 2021 · 0 comments
Labels

Comments

@cowboyd
Copy link
Member

cowboyd commented Oct 4, 2021

The following test script causes the test suite to hang rather than fail. It's not a common case for sure, but it is useful can happen if you are using a placeholder temporarily while you can generate a failing test case:

export default test('naked rejection')
  .assert('a pure rejection with no error value', () => Promise.reject());

This should fail in some way, but instead it hangs completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant