SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

244272 0 0 JavaScript

[compiler] snap fails if nothing compiled, unless @expectNothingCompiled (#35615)

A few times an agent has constructed fixtures that are silently skipped
because the component has no jsx or hook calls. This PR updates snap to
ensure that for each fixture either:

1) There are at least one compile success/failure *and* the
`@expectNothingCompiled` pragma is missing
2) OR there are zero success/failures *and* the `@expectNothingCompiled`
pragma is present

This ensures we are intentional about fixtures that are expected not to
have compilation, and know if that expectation breaks.
J
Joseph Savona committed
2c8725fdfd13705487d13dce008d62c605cd7f73
Parent: 03613cd
Committed by GitHub <[email protected]> on 1/23/2026, 6:38:40 PM