()
| 195 | // Re-evaluate client-src/index.js fresh after mutating __resourceQuery so |
| 196 | // top-level option parsing runs again. |
| 197 | async function reloadClient() { |
| 198 | overlay.send.mockReset(); |
| 199 | socket.mockReset(); |
| 200 | const indexUrl = import.meta.resolve("../../client-src/index.js"); |
| 201 | await import(`${indexUrl}?t=${Date.now()}-${Math.random()}`); |
| 202 | [[, onSocketMessage]] = socket.mock.calls; |
| 203 | } |
| 204 | |
| 205 | // Pass JSON config with warnings disabled |
| 206 | globalThis.__resourceQuery = `?overlay=${encodeURIComponent( |
no outgoing calls
no test coverage detected
searching dependent graphs…