Skip to content

Conversation

@muhammadkhan0009
Copy link

@muhammadkhan0009 muhammadkhan0009 commented Feb 17, 2023

Description

Fixes # (issue)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Adding or updating CI (Actions)
  • This change requires a documentation update

How Has This Been Tested?

The changes have been tested via doing monkey patch on our app repo and verified that tests are passing now after this change. As I added an optional prop named threshold, therefore custom jest matcher toMatchBaseline function would be called as follow:

 const result = toMatchBaseline(latestPath, { threshold: 0.2 });

Checklist: (Feel free to delete this section upon completion)

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My code follows the style guidelines of this project (I have run yarn prettier:apply)
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (I have run yarn test)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

Screenshots (for visual changes):

@robwalkerco
Copy link
Contributor

@muhammadkhan0009 Thanks so much for your PR.
I've opened #142 which takes your changes, plus adds a default value, updates the types and updates the docs.

@robwalkerco robwalkerco closed this Mar 2, 2023
@robwalkerco robwalkerco mentioned this pull request Mar 2, 2023
5 tasks
@muhammadkhan0009
Copy link
Author

@robwalkerco
Thank you for adding the PR.

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.

3 participants