I think this could work a lot like Sinon.js' Stub where you can create a thing that returns specific responses in a specific order or throws at a specific point. This would allow better testability of API response handling within an app when the API is mocked.
I think this could work a lot like Sinon.js'
Stub
where you can create a thing that returns specific responses in a specific order or throws at a specific point. This would allow better testability of API response handling within an app when the API is mocked.