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

Update README.md bug #127

Merged
merged 1 commit into from
Mar 5, 2021
Merged

Update README.md bug #127

merged 1 commit into from
Mar 5, 2021

Conversation

AOEChamp
Copy link
Contributor

@AOEChamp AOEChamp commented Mar 5, 2021

The current readme suggests using resetAllMocks between tests, but this actually breaks the mocks. The soltion is to use clearAllMocks which is already used within this project's own tests. I've updated the readme to suggest the correct function, and also make it more clear that .clear() also needs to be used to fully reset state between tests.

Original bug report: #83

Change resetAllMocks to clearAllMocks
Add clarity
@codecov
Copy link

codecov bot commented Mar 5, 2021

Codecov Report

Merging #127 (887e294) into master (c6217cc) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #127   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           27        27           
  Branches         5         5           
=========================================
  Hits            27        27           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6217cc...14cb1f7. Read the comment docs.

Copy link
Owner

@clarkbw clarkbw left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

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