Skip to content

Migrate all imports from react-native to package imports instead of relative in Fantom tests#49912

Closed
rubennorte wants to merge 2 commits into
facebook:mainfrom
rubennorte:export-D70779722
Closed

Migrate all imports from react-native to package imports instead of relative in Fantom tests#49912
rubennorte wants to merge 2 commits into
facebook:mainfrom
rubennorte:export-D70779722

Conversation

@rubennorte
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [internal]

This migrates all Fantom tests to use package-relative imports from react-native instead of relative paths.

Note that a lot of the current deep imports (e.g.: import ReactNativeElement from 'react-native/src/private/webapis/dom/nodes/ReactNativeElement') will not be necessary when we release those APIs as public.

Differential Revision: D70779722

@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 labels Mar 8, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

Summary:

Changelog: [internal]

The approach in Fantom tests is to use the public API as much as we can, but forcing us to use relative imports in tests makes it harder to see what's the public API and what's not. This disables the lint rule so we can use package imports in Fantom tests without warnings/errors.

Reviewed By: sammy-SC

Differential Revision: D70779721
…elative in Fantom tests (facebook#49912)

Summary:

Changelog: [internal]

This migrates all Fantom tests to use package-relative imports from `react-native` instead of relative paths.

Note that a lot of the current deep imports (e.g.: `import ReactNativeElement from 'react-native/src/private/webapis/dom/nodes/ReactNativeElement'`) will not be necessary when we release those APIs as public.

Reviewed By: sammy-SC

Differential Revision: D70779722
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 10, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 7cff19b.

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