Skip to content
New issue

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

feat(jest-circus, jest-jasmine2): Add support for async function in setupFilesAfterEnv #14749

Merged
merged 7 commits into from
Jan 1, 2024

Conversation

vkml
Copy link
Contributor

@vkml vkml commented Dec 11, 2023

Adds the corresponding support for CJS async function export of setupFiles to setupFilesAfterEnv (for supported test runners). #10962.

Summary

Previously, support for CJS async functions was implemented solely for setupFiles. This PR aims to extend the same functionality to setupFilesAfterEnv.

ESM natively supports top-level-await, making the addition of this feature to ESM redunant. However, CJS is still widely used, so I felt the need to expand the feature support to setupFilesAfterEnv.

Test plan

yarn test setupFilesAfterEnv

image

Copy link

linux-foundation-easycla bot commented Dec 11, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

netlify bot commented Dec 11, 2023

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 187db7c
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/659335fc8046730008be05b9
😎 Deploy Preview https://deploy-preview-14749--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.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@SimenB SimenB enabled auto-merge (squash) December 25, 2023 11:23
@SimenB
Copy link
Member

SimenB commented Dec 25, 2023

@vkml can you sign the CLA? 🙂

@vkml
Copy link
Contributor Author

vkml commented Jan 1, 2024

@SimenB done

@SimenB SimenB disabled auto-merge January 1, 2024 22:15
@SimenB SimenB merged commit 544fac7 into jestjs:main Jan 1, 2024
72 of 73 checks passed
Copy link

github-actions bot commented Feb 1, 2024

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 Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants