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

Run hydration tests in both static-optimized and non-static-optimized modes #4586

Closed
nolanlawson opened this issue Sep 27, 2024 · 1 comment · Fixed by #4657
Closed

Run hydration tests in both static-optimized and non-static-optimized modes #4586

nolanlawson opened this issue Sep 27, 2024 · 1 comment · Fixed by #4657

Comments

@nolanlawson
Copy link
Collaborator

We have some hydration Karma tests that implicitly disable the static content optimization by adding lwc:spread. This is a bit repetative and fragile – it will break if lwc:spread ever becomes static-optimized.

Instead, we should do what we do with the regular Karma tests and have a mode like:

DISABLE_STATIC_CONTENT_OPTIMIZATION=1 yarn hydration:test

This would disable the static content optimization explicitly for all hydration tests.

@nolanlawson
Copy link
Collaborator Author

Discovered during testing: #4656

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

Successfully merging a pull request may close this issue.

1 participant