perf(javascript): switch test environment from jsdom to happy-dom#847
Open
austingreco wants to merge 1 commit intomainfrom
Open
perf(javascript): switch test environment from jsdom to happy-dom#847austingreco wants to merge 1 commit intomainfrom
austingreco wants to merge 1 commit intomainfrom
Conversation
📊 Combined Coverage Report
Coverage PolicyBaseline (Existing Code):
New/Changed Code: ≥90% STRICTLY ENFORCED Long-term Goal: Maintain and improve coverage baselines 📝 Coverage Guidelines
🔗 Quick Links |
happy-dom is a lighter-weight DOM implementation that provides faster test execution. Local benchmarks show ~12% faster total duration and ~25% faster table integration tests.
8d14500 to
c6833b0
Compare
JavaScript Coverage ReportTotal Coverage: 79.18% Coverage Policy:
Coverage Details |
5 tasks
Contributor
|
How are you weighing the cons of adopting the happy-dom environment? My concern is primarily about less realistic/less established. What do you thiink? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this? (check all applicable)
What changed?
jsdomwithhappy-domas the test DOM environment in vitest configrgb(255, 0, 0)→red)Why?
happy-dom is a lighter-weight DOM implementation that provides faster test execution. Local benchmarks:
CI environments (slower hardware) tend to amplify these differences further.
How did you test it?
yarn vitest --runPotential risks
Release notes
Documentation Changes