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

Added snapshot plugin tests #3524

Closed

Conversation

RunDevelopment
Copy link
Member

Since @JaKXz asked for Light Highlight tests in #3518, I added some. However, I thought that having a bunch of test HTML in source files wasn't ideal, so I added snapshot testing. Since this added a dependency and made quite a few changes, I didn't want this to be part of #3518, hence this PR.

Snapshots are pretty easy to use with util.assert. If the expected option is missing, it will use snapshots.

Right now, only the tests for Line Highlight and Highlight Keyword use snapshots. The other tests did not have long enough test HTML to warrant snapshots IMO.

@github-actions
Copy link

github-actions bot commented Aug 18, 2022

No JS Changes

Generated by 🚫 dangerJS against d269483

@RunDevelopment
Copy link
Member Author

Sooo, it seems like this is blocked by #3408.

@mAAdhaTTah mAAdhaTTah added this to the 2.0 milestone Aug 22, 2022
@RunDevelopment
Copy link
Member Author

Resolved by 5f5b6d2 in v2.

@RunDevelopment RunDevelopment deleted the snapshot-plugin-tests branch September 2, 2022 10:51
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.

None yet

2 participants