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

fix(es/jest): Handle @jest/globals #8994

Merged
merged 4 commits into from
May 30, 2024
Merged

fix(es/jest): Handle @jest/globals #8994

merged 4 commits into from
May 30, 2024

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented May 29, 2024

Description:

  • We have two jest pass. One in @swc/core (via _hidden.jest flag), and one in the plugin. This PR fixes only the core one.

However, the linked issue is wrong because the code tries to break the rule of ESM specification. So although this PR closes the issue, the final form is not the issue author wanted.

Related issue:

@kdy1 kdy1 added this to the Planned milestone May 29, 2024
@kdy1 kdy1 requested a review from magic-akari May 29, 2024 04:51
@kdy1 kdy1 self-assigned this May 29, 2024
@kdy1 kdy1 requested a review from a team as a code owner May 29, 2024 04:51
@kdy1 kdy1 changed the title fix(es/transforms/jest): Handle @jest/globals fix(es/jest): Handle @jest/globals May 29, 2024
Copy link
Member Author

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

swc-bump:

  • swc_ecma_ext_transforms
  • swc_core
  • swc_ecma_ast

@kdy1 kdy1 enabled auto-merge (squash) May 30, 2024 04:55
@kdy1 kdy1 disabled auto-merge May 30, 2024 06:30
@kdy1 kdy1 merged commit a81a01f into swc-project:main May 30, 2024
147 of 149 checks passed
@kdy1 kdy1 deleted the plugins-310 branch May 30, 2024 06:30
@kdy1 kdy1 modified the milestones: Planned, v1.5.23 May 30, 2024
@swc-project swc-project locked as resolved and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

jest.mock is not hoisted if jest is imported from @jest/globals
2 participants