MCPcopy
hub / github.com/jestjs/jest / getState

Function getState

packages/jest-circus/src/state.ts:42–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40};
41
42export const getState = (): Circus.State =>
43 (globalThis as Global.Global)[STATE_SYM] as Circus.State;
44export const setState = (state: Circus.State): Circus.State => {
45 setGlobal(globalThis, STATE_SYM, state);
46 protectProperties(state, [

Callers 9

runFunction · 0.90
_runTestFunction · 0.90
_callCircusHookFunction · 0.90
_callCircusTestFunction · 0.90
hasEnabledTestFunction · 0.90
makeSingleTestResultFunction · 0.90
dispatchFunction · 0.70
dispatchSyncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected