MCPcopy
hub / github.com/vitest-dev/vitest / getBrowserState

Function getBrowserState

packages/browser/src/client/utils.ts:101–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100/* @__NO_SIDE_EFFECTS__ */
101export function getBrowserState(): BrowserRunnerState {
102 // @ts-expect-error not typed global
103 return window.__vitest_browser_runner__
104}
105
106/* @__NO_SIDE_EFFECTS__ */
107export function getWorkerState(): WorkerGlobalState {

Callers 15

client.tsFile · 0.90
waitForOrchestratorFunction · 0.90
checkFunction · 0.90
cdpEventFunction · 0.90
resolveManualMockFunction · 0.90
constructorMethod · 0.90
createTestersMethod · 0.90
createTestIframeMethod · 0.90
orchestrator.tsFile · 0.90
setIframeViewportFunction · 0.90
channel.tsFile · 0.90
elementFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected