You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2019. It is now read-only.
That leads to the situation where server.responses and server.requests have shared state from test to test. That, in turn, makes it harder to make assertions about requests and responses and makes it easy to accidentally have one test step on another by defining a fake response.
What do you think of changing the above lines to the following?
@jamesarosen the biggest reason that it doesn't do that right now is that it allows the recorder to memoize recordings from other steps. So for instance if your app requests /users for every test, having it not restart means that we can then only make one request to the server while recording. It also means that you have better guarantees, if the request changes during recording, a newer result won't clobber an old one.
Currently, this library starts the server before the suite run and stops it after.
That leads to the situation where
server.responses
andserver.requests
have shared state from test to test. That, in turn, makes it harder to make assertions about requests and responses and makes it easy to accidentally have one test step on another by defining a fake response.What do you think of changing the above lines to the following?
The text was updated successfully, but these errors were encountered: