2

The mocking framework Nock.js removes responses after answering them. There is a feature to repeat a response n times, but is there something I can do if I want it to respond to a certain request with the same response every time it is called?

4

1 回答 1

3

您可以使用nock(url).get(path).times(Infinity).

于 2018-04-04T13:46:19.523 回答