Skip to content
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

test(ssr): remove env var, test coverage #5139

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nolanlawson
Copy link
Collaborator

@nolanlawson nolanlawson commented Jan 17, 2025

Details

Removes the TEST_SSR_COMPILER and runs the SSR compiler tests as part of the main yarn test suite. Also adds coverage thresholds.

The main benefit of this PR is that we now get coverage numbers for the SSR compiler, and plus the test infra is much simpler. The only downside is that there is a somewhat annoying and distracting red "9 failed" message for the mismatched snapshots:

Screenshot 2025-01-17 at 9 52 19 AM

These snapshot failures should ideally be driven down to zero soon. We are reaching the point where many of the differences between engine-server and ssr-compiler are expected or unimportant. E.g. for HTML global attributes, both systems are wrong (#5123). So it may be time to just deprecate engine-server and move forward with fixing ssr-compiler.

Partially addresses #4815.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

@nolanlawson nolanlawson requested a review from a team as a code owner January 17, 2025 18:16
functions: 95,
lines: 95,
statements: 95,
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened a separate issue to track the low test coverage: #5140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant