Skip to content

Monorepo Jest - remove now unnecessary Babel registration#38146

Closed
robhogan wants to merge 3 commits into
facebook:mainfrom
robhogan:export-D47162728
Closed

Monorepo Jest - remove now unnecessary Babel registration#38146
robhogan wants to merge 3 commits into
facebook:mainfrom
robhogan:export-D47162728

Conversation

@robhogan
Copy link
Copy Markdown
Contributor

Summary:
Now that metro-react-native-babel-transformer may be loaded from source without transformation, we can remove this workaround / potential footgun.

Jest uses Babel imperatively and doesn't rely on registration (require hooks), so registering within the preprocessor potentially conflicts and has caused problems before. This just tidies up some complexity we don't need.

Changelog: [Internal]

Differential Revision: D47162728

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Jun 30, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D47162728

Comment thread flow-typed/npm/babel-traverse_v7.x.x.js Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

  • ⚠️ flow-typed/npm/babel-traverse_v7.x.x.js line 94 – 'ft-flow/no-dupe-keys' rule is disabled but never reported. (eslint-comments/no-unused-disable)

robhogan and others added 3 commits July 3, 2023 04:24
Differential Revision: D47153654

fbshipit-source-id: 9f5d55e80fe053e0f3322c8b2933d7ea13b1f4f3
Differential Revision: D47154206

fbshipit-source-id: befbb8d19f8648142d4ed16ea0566f4e0ea130f7
…8146)

Summary:
Pull Request resolved: facebook#38146

Now that `metro-react-native-babel-transformer` may be loaded from source without transformation, we can remove this workaround / potential footgun.

Jest uses Babel imperatively and doesn't rely on registration (require hooks), so registering within the preprocessor potentially conflicts and has caused problems before. This just tidies up some complexity we don't need.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D47162728

fbshipit-source-id: a4357f25ae052cb179cb493566127a018601b407
@robhogan robhogan force-pushed the export-D47162728 branch from ffcdc11 to 21c0bc6 Compare July 3, 2023 11:29
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D47162728

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 3, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 971bb81.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants