Skip to content

Since v5.6.0 toBe() returns void instead of void | Promise<void> #2068

@gavvvr

Description

@gavvvr

v5.5.0:

Image

v5.6.x:

Image

This leads to the following linting errors in my code:

   15:7   error  Unexpected `await` of a non-Promise (non-"Thenable") value                                              @typescript-eslint/await-thenable
   15:13  error  Placing a void expression inside another expression is forbidden. Move it to its own statement instead  @typescript-eslint/no-confusing-void-expression

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