Skip to content

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.

2 participants