snaps
snaps copied to clipboard
Allow mocking JSON-RPC methods based on params
Right now JSON-RPC mocking in the Jest testing framework only supports mocking based on the method name. There is no way to return a different return value for different params.
An easy solution would be to support functions which return the mocked response based on the request.