Skip to content

ReactTestUtils.actAsync returned promise can't be used more than once #627

@TristanCacqueray

Description

@TristanCacqueray

It seems like the actAsync Promise is broken and it results in undefined error when used twice, for example:

actAsync(_ => () |> resolve) |> then_(_ => () |> resolve)  |> then_(_ => () |> resolve)

yield this error: TypeError: Cannot read property 'then' of undefined

More details in: glennsl/rescript-jest#77

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