dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
M scripts/babel/__tests__/transform-test-gate-pragma-test.js ModifiedM scripts/jest/setupTests.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…