MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / teardownContainer

Function teardownContainer

bin/mcp-server.js:135–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133}
134
135async 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
150let shutdownStarted = false
151function installShutdownHooks() {

Callers 3

onSignalFunction · 0.85
installShutdownHooksFunction · 0.85
initCodeceptFunction · 0.85

Calls 2

closeBrowserFunction · 0.85
teardownMethod · 0.80

Tested by

no test coverage detected