Skip to content

waitForExpect throwing error instead of waiting #29

@robross0606

Description

@robross0606

For reasons I don't understand, attempts to use waitForExpect() are returning a Jest error instead of waiting (and possibly timing out).

    expected [] to be an array containing exactly 1 items

      429 |
      430 |           await waitForExpect(() => {
    > 431 |             expect(receivedMessages).toBeArrayOfSize(1)
          |                                      ^
      432 |           })
      433 |

      at src/__tests__/amqp-service.test.js:431:38
      at Timeout.runExpectation [as _onTimeout] (node_modules/wait-for-expect/lib/index.js:46:25)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions