Skip to content

Runner hangs when promise rejects with undefined error #1015

Description

@cowboyd

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions