Skip to content

Conversation

@josephsavona
Copy link
Member

@josephsavona josephsavona commented Jan 23, 2026

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.

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.
@meta-cla meta-cla bot added the CLA Signed label Jan 23, 2026
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jan 23, 2026
@josephsavona josephsavona merged commit 2c8725f into facebook:main Jan 23, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant