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

Function closeBrowser

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

Source from the content-addressed store, hash-verified

430}
431
432async function closeBrowser() {
433 if (!containerInitialized) return
434 await cancelRun()
435 await endShellSession()
436 for (const helper of Object.values(container.helpers() || {})) {
437 try { if (helper._cleanup) await helper._cleanup() } catch {}
438 try { if (helper._finishTest) await helper._finishTest() } catch {}
439 }
440 browserStarted = false
441}
442
443async function captureLiveArtifacts(prefix = 'pause') {
444 const helper = pickActingHelper(container.helpers())

Callers 2

teardownContainerFunction · 0.85
mcp-server.jsFile · 0.85

Calls 5

cancelRunFunction · 0.85
endShellSessionFunction · 0.85
helpersMethod · 0.80
_cleanupMethod · 0.80
_finishTestMethod · 0.45

Tested by

no test coverage detected