()
| 13 | const require = createRequire(import.meta.url); |
| 14 | |
| 15 | function createRouteRegistry() { |
| 16 | const routes = new Map(); |
| 17 | |
| 18 | return { |
| 19 | app: { |
| 20 | get(path, ...handlers) { |
| 21 | routes.set(`GET ${path}`, handlers); |
| 22 | }, |
| 23 | }, |
| 24 | getHandlers(method, path) { |
| 25 | return routes.get(`${method} ${path}`) || []; |
| 26 | }, |
| 27 | }; |
| 28 | } |
| 29 | |
| 30 | function createMockResponse() { |
| 31 | return { |
no outgoing calls
no test coverage detected