()
| 133 | } |
| 134 | |
| 135 | async function teardownContainer() { |
| 136 | if (!containerInitialized) return |
| 137 | try { |
| 138 | await closeBrowser() |
| 139 | try { if (codecept?.teardown) await codecept.teardown() } catch {} |
| 140 | } finally { |
| 141 | containerInitialized = false |
| 142 | browserStarted = false |
| 143 | bootstrapDone = false |
| 144 | aiTraceEnabled = false |
| 145 | codecept = null |
| 146 | currentPluginsSig = '' |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | let shutdownStarted = false |
| 151 | function installShutdownHooks() { |
no test coverage detected