Replies: 2 comments
-
@taitruong Did you make sure to await the For example: test("my test", async (t) => {
await t.throwsAsync(
myFunReturningErrorPromise()
);
}); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thx, it works as expected! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is my code snippet:
So my promises gets rejected. I was expecting that
throwsAsync()
would pass my rejected promise, but instead I get anRejected promise returned by test.
message and my test fails/stops.Beta Was this translation helpful? Give feedback.
All reactions