Skip to content

Conversation

@cdoublev
Copy link

@cdoublev cdoublev commented Jan 9, 2025

Summary

The callback of the test example for expect.assertions() is failing because it does not return a promise.

Alternatively, the description below the test could say:

The expect.assertions(2) call ensures that both callbacks actually get called. It will fail in the example above, because the promise is not returned therefore Jest will not wait for doAsync() to run the callbacks.

Test plan

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 9, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@netlify
Copy link

netlify bot commented Jan 9, 2025

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 92499b3
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/677fa8719f74d90008d087ff
😎 Deploy Preview https://deploy-preview-15439--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Apr 9, 2025
@github-actions
Copy link

github-actions bot commented May 9, 2025

This PR was closed because it has been stalled for 30 days with no activity. Please open a new PR if the issue is still relevant, linking to this one.

@github-actions github-actions bot closed this May 9, 2025
@cdoublev cdoublev deleted the patch-1 branch May 14, 2025 17:16
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant