We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1b3d6d commit 53ea04fCopy full SHA for 53ea04f
packages/jest-circus/src/state.ts
@@ -14,9 +14,8 @@ import {makeDescribe} from './utils';
14
15
const handlers: Array<Circus.EventHandler> = ((globalThis as Global.Global)[
16
EVENT_HANDLERS
17
-] = ((globalThis as Global.Global)[
18
- EVENT_HANDLERS
19
-] as Array<Circus.EventHandler>) || [eventHandler, formatNodeAssertErrors]);
+] as Array<Circus.EventHandler>) || [eventHandler, formatNodeAssertErrors];
+setGlobal(globalThis, EVENT_HANDLERS, handlers, 'retain');
20
21
export const ROOT_DESCRIBE_BLOCK_NAME = 'ROOT_DESCRIBE_BLOCK';
22
0 commit comments