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

index: export a function to re-initialize mocks #98

Merged
merged 5 commits into from
Nov 28, 2022

Conversation

nicks
Copy link
Contributor

@nicks nicks commented Aug 3, 2022

This allows consumers of this library to use the mock with jest.resetAllMocks()

Should allow workarounds for #72

Signed-off-by: Nick Santos <nick.santos@docker.com>
src/index.js Outdated Show resolved Hide resolved
Co-authored-by: Jon Dufresne <jon.dufresne@gmail.com>
types/index.d.ts Outdated Show resolved Hide resolved
Signed-off-by: Nick Santos <nick.santos@docker.com>
src/index.js Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
Signed-off-by: Nick Santos <nick.santos@docker.com>
Signed-off-by: Nick Santos <nick.santos@docker.com>
@hustcc hustcc merged commit 9cdd8b7 into hustcc:master Nov 28, 2022
@nicks nicks deleted the nicks/createCanvasMock branch November 28, 2022 14:02
@hustcc hustcc mentioned this pull request Mar 23, 2023
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

3 participants