Clear queue, captured requests, matchers, and default response.
()
| 143 | |
| 144 | /** Clear queue, captured requests, matchers, and default response. */ |
| 145 | reset(): void { |
| 146 | this.responses = []; |
| 147 | this.captured = []; |
| 148 | this.defaultResponse = null; |
| 149 | this.matchers = []; |
| 150 | } |
| 151 | |
| 152 | private async handle(req: Request): Promise<Response> { |
| 153 | const url = new URL(req.url); |
no outgoing calls