Skip to content

RN: Flowify packages/react-native/jest #51652

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

Closed
wants to merge 1 commit into from

Conversation

yungsters
Copy link
Contributor

@yungsters yungsters commented May 27, 2025

Summary:

Adds @flow (or @noflow) to all files in this directory and ensures that Flow succeeds (by adding type annotations, using minor refactors, or suppressing errors due to intentionally dynamic logic).

This will help improve type safety when making changes both in these files as well as files that these depend on.

Changelog:

[Internal]

Test Plan:

Ran Flow and Jest tests successfully:

$ yarn flow
$ yarn test

@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 May 27, 2025
@facebook-github-bot
Copy link
Contributor

@yungsters has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

yungsters added a commit to yungsters/react-native that referenced this pull request May 27, 2025
Summary:
Adds `flow` (or `noflow`) to all files in this directory and ensures that Flow succeeds (by adding type annotations, using minor refactors, or suppressing errors due to intentionally dynamic logic).

This will help improve type safety when making changes both in these files as well as files that these depend on.

## Changelog:
[Internal]


Test Plan:
Ran Flow and Jest tests successfully:

```
$ yarn flow
$ yarn test
```

Differential Revision: D75488160

Pulled By: yungsters
@facebook-github-bot
Copy link
Contributor

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

yungsters added a commit to yungsters/react-native that referenced this pull request May 27, 2025
Summary:
Adds `flow` (or `noflow`) to all files in this directory and ensures that Flow succeeds (by adding type annotations, using minor refactors, or suppressing errors due to intentionally dynamic logic).

This will help improve type safety when making changes both in these files as well as files that these depend on.

## Changelog:
[Internal]


Test Plan:
Ran Flow and Jest tests successfully:

```
$ yarn flow
$ yarn test
```

Differential Revision: D75488160

Pulled By: yungsters
@facebook-github-bot
Copy link
Contributor

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

Summary:
Adds `flow` (or `noflow`) to all files in this directory and ensures that Flow succeeds (by adding type annotations, using minor refactors, or suppressing errors due to intentionally dynamic logic).

This will help improve type safety when making changes both in these files as well as files that these depend on.

## Changelog:
[Internal]


Test Plan:
Ran Flow and Jest tests successfully:

```
$ yarn flow
$ yarn test
```

Ran a Jest unit test internally to make sure they work with our internal environment setup:

```
$ cd ~/fbsource
$ js1 test /View-test.js
```

Reviewed By: javache

Differential Revision: D75488160

Pulled By: yungsters
@facebook-github-bot
Copy link
Contributor

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

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @yungsters in a4c2007

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label May 28, 2025
@facebook-github-bot
Copy link
Contributor

@yungsters merged this pull request in a4c2007.

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.

3 participants