3 ms·
I don't like recording requests/responses because of this. In these cases, I prefer to manually write the test without running the code because I want to make
by Osiris 10y ago
I don't like recording requests/responses because of this. In these cases, I prefer to manually write the test without running the code because I want to make sure the test matches what I expect my code to do, not record what it actually does. I caught an error yesterday in which a recorded response was used as an expectation, so the test passed. The bug was only exposed when I wrote a new test and manually created the request/response objects based on the docs. The test failed and I found the bug (a field was being transposed during transform of the response).