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

Add utility tests and minimumChangeThreshold option #21

Merged
merged 2 commits into from
Jun 13, 2020

Conversation

dstaley
Copy link
Contributor

@dstaley dstaley commented Apr 30, 2020

This PR adds Jest tests for the utility functions that don't communicate with GitHub. These functions were moved to their own module, utils.js.

I've also added a new configuration option minimum-change-threshold. Any files that have a delta beneath this value will be considered unchanged. The original default of 1 byte has been retained.

This doesn't make any modifications to the comment logic. I figure we can hash that out in a separate PR.

If desired, I can also add a workflow to run the tests on pull requests. Just let me know if you'd like that!

Copy link
Member

@developit developit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! I'm going to move some files around post-merge, but this is great.

@developit developit merged commit beb53b9 into preactjs:master Jun 13, 2020
@developit
Copy link
Member

Released as v2 (v2.0.1).

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