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

Add test asserting shape of public JS API #42265

Closed
wants to merge 1 commit into from

Commits on Jan 14, 2024

  1. Add test asserting shape of public JS API (facebook#42265)

    Summary:
    
    Adds a snapshot test against the `react-native` package which emits the shape of all Flow-typed modules under `Libraries/`, as an approximation of the public JS API.
    
    This provides:
    - Visibility for maintainers on any PR which changes the shape of the public API.
    - An at-a-glance diff of changed APIs between React Native versions (useful for library integrators and the Release Crew).
    
    Note — **workflow change**: Maintainers modifying public files/function signatures under Libraries/ will need to run `yarn jest -u` and commit the updated snapshot changes.
    
    Changelog: [Internal]
    
    Reviewed By: TheSavior, philIip, mdvacca
    
    Differential Revision: D52729777
    huntie authored and facebook-github-bot committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    7955351 View commit details
    Browse the repository at this point in the history