-
Notifications
You must be signed in to change notification settings - Fork 47.7k
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 React Native test configs #27489
Conversation
a1015cb
to
7322b2d
Compare
Adds new Jest configs for running our test suite using React Native feature flags. This includes a special config for the version of RN that Meta uses for internal dogfooding, similar to the equivalent ones used for Meta's web codebase. Practically speaking, the main benefit is we can run our tests in CI with the experimental flags used at Meta without having to enable them in the open source builds. Usage: yarn test -r=native-oss yarn test -r=native-fb yarn test -r=native-fb --no-variant
7322b2d
to
3ba58db
Compare
Comparing: dddfe68...3ba58db Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
Some of the tests are failing but I believe they are legit failures exposed by the additional test coverage, I'll look into them |
// | ||
// TODO: __VARIANT__ isn't supported for React Native flags yet. You can set the | ||
// flag here but it won't be set to `true` in any of our test runs. Need to | ||
// update the test configuration. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does the import here not just a circular dependency? The ReactNativeInternalFeatureFlags
import should suffice, since that's defined in flow/xplat.js
I landed basically the same thing here as #29734 |
Adds new Jest configs for running our test suite using React Native feature flags. This includes a special config for the version of RN that Meta uses for internal dogfooding, similar to the equivalent ones used for Meta's web codebase.
Practically speaking, the main benefit is we can run our tests in CI with the experimental flags used at Meta without having to enable them in the open source builds.
Usage: