From 18f31db87ba55879b8ddc51ac0360976da118494 Mon Sep 17 00:00:00 2001 From: xenticore Date: Thu, 1 May 2025 18:54:48 -0400 Subject: [PATCH] test: GM_fetch not mocked depending on test order --- happydom.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/happydom.ts b/happydom.ts index a51cee6..984722e 100644 --- a/happydom.ts +++ b/happydom.ts @@ -1,4 +1,8 @@ import { GlobalRegistrator } from "@happy-dom/global-registrator"; +import { mock } from "bun:test"; GlobalRegistrator.register(); -Object.assign(global, require('jest-chrome')) \ No newline at end of file +Object.assign(global, require('jest-chrome')) + +// Mock GM_fetch +globalThis.GM_fetch = mock(async () => {});