Repository navigation
test: migrate rollup-plugin tests to use snapshots - #2292
Merged
Merged
Conversation
nolanlawson
commented
Apr 13, 2021
| tabindex="-1" | ||
| class="foo bar" | ||
| style="color: red; background: blue;" | ||
| style="color: red; background: blue" |
Contributor
Author
There was a problem hiding this comment.
This test compares formatted HTML to formatted HTML, which I assume is the reason for this difference. I didn't change the test; I just ran find . -type f | grep __tests__ | grep expected | xargs rm -f and re-ran yarn test to generate the files.
nolanlawson
force-pushed
the
nolan/snapshot-tests-redux
branch
from
April 13, 2021 17:37
df1c4e0 to
b2b03c3
Compare
pmdartus
approved these changes
Apr 14, 2021
Contributor
Author
|
Not sure why CircleCI isn't running, I'll just force-push and retry |
nolanlawson
force-pushed
the
nolan/snapshot-tests-redux
branch
from
April 14, 2021 16:10
b2b03c3 to
c141bb5
Compare
🥳 Performance ImprovementBest has detected that there is a Please click here to see more details. Click to view significantly changed benchmarks@lwc/engine-dom
@lwc/engine-server
|
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.
Details
Based on discussion in #2289, this migrates the
@lwc/rollup-plugintests to use a system where theexpected*.jsfiles are automatically regenerated if removed. This system does not use Jest snapshots.I tested it out myself on this PR, and all the
expectedfiles were successfully re-created exactly as-is with no changes. Note that some of the existingexpectedfiles changed slightly due to this process of deleting and re-creating.I have not made this a one-command process. I'm just trying to document the system we already have. (See changes to
CONTRIBUTING.md.)Does this PR introduce breaking changes?
No, it does not introduce breaking changes.GUS work item
W-9125283