(config: SerializedConfig)
| 58 | } |
| 59 | |
| 60 | export function closeInspector(config: SerializedConfig): void { |
| 61 | const keepOpen = shouldKeepOpen(config) |
| 62 | |
| 63 | if (inspector && !keepOpen) { |
| 64 | inspector.close() |
| 65 | session?.disconnect() |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | function shouldKeepOpen(config: SerializedConfig) { |
| 70 | // In watch mode the inspector can persist re-runs if isolation is disabled and a single worker is used |
no test coverage detected