dillon1000/react
Commit
Browse files Test infra: Support gate('enableFeatureFlag') (#30760)
Shortcut for the common case where only a single flag is checked. Same as `gate(flags => flags.enableFeatureFlag)`. Normally I don't care about these types of conveniences but I'm about to add a lot more inline flag checks these all over our tests and it gets noisy. This helps a bit.
Changed paths2 files
First-parent comparisonscripts/babel/__tests__/transform-test-gate-pragma-test.js ModifiedM scripts/jest/setupTests.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…