The idea of the test is setting up a default 200 HTTP response for all the request over /data/ regex URL expression in the beforeEach method, but I would like to change that behavior in some test cases.
The weird thing here is that the first test pass successfully, but, the second test when I'd like to test my component against an API error it turns out that the API doesn't return the expected 500 error, it always returns the 200 HTTP OK response that was configured in the beforeEach method.
I need to achieve this because there are some other test cases that depend on that 200 HTTP OK response.
Hi team, your project is very useful. Thank you very much.
I have the following test code:
The idea of the test is setting up a default 200 HTTP response for all the request over
/data/
regex URL expression in thebeforeEach
method, but I would like to change that behavior in some test cases.The weird thing here is that the first test pass successfully, but, the second test when I'd like to test my component against an API error it turns out that the API doesn't return the expected 500 error, it always returns the 200 HTTP OK response that was configured in the
beforeEach
method.I need to achieve this because there are some other test cases that depend on that 200 HTTP OK response.
Thank you very much in advance.