-
Notifications
You must be signed in to change notification settings - Fork 27
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
#299 Disable existing JSON ABI specification option for generic input form when no specifications are available #303
Conversation
… any available specifications
…aren't any existing specifications
…ups-wagmi from the generic form test suite
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
rollupsWagmi.useSimulateInputBoxAddInput = vi | ||
.fn() | ||
.mockImplementation(mockedHook); | ||
useSimulateInputBoxAddInputMock.mockImplementation(mockedHook); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This useSimulateInputBoxAddInputMock
is already a mock. So you don't need to create an external one to pass as an implementation of another mock 🤔 . You could do the mockReturnValue
as you did above or in the beforeEach. That also applies to all the other test cases doing the same.
Besides the code changes and new unit tests for it, I also refactored the test suite for the generic form, removing inline imports.