Closed rockacola closed 4 years ago
I'm currently using axios-mock-adapter
for vega
as well as previous projects.
This is not a standard approach I've seen in open source projects, but the one I've had most luck with especially dealing with RPC requests (where many mock assumes for REST, only).
Some potential libraries for a quick search:
If you are using axios-mock-adapter, i'd prefer to continue using that here as well for the sake of commonality. If we need to transition later, we can, but it would be at a platform level. I have a lot of hesitancy to support multiple tools for similar purposes.
I'm also hesitant to say that we should migrate vega at the expense of feature development.
Purpose of this ticket is to discuss tool(s) to use in order to mock API requests (RPC and REST) as part of unit test framework.