We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
TypeError: Cannot read property 'then' of undefined
More details in: glennsl/rescript-jest#77
The text was updated successfully, but these errors were encountered:
The actAsync function in React doesn't return an actual promise, I think you can fix that by doing:
actAsync
React
@bs.val external toActualPromise: Js.Promise.t<'a> => Js.Promise.t<'a> = "Promise.resolve"; toActualPromise(actAsync(...))
Sorry, something went wrong.
Thank you for the feedback, this solution works. Shouldn't it be the default so that actAsync can be used directly with Jest.testPromise ?
No branches or pull requests
It seems like the actAsync Promise is broken and it results in undefined error when used twice, for example:
yield this error:
TypeError: Cannot read property 'then' of undefined
More details in: glennsl/rescript-jest#77
The text was updated successfully, but these errors were encountered: