test: GM_fetch not mocked depending on test order

This commit is contained in:
xenticore
2025-05-01 18:54:48 -04:00
parent 9946cafaf5
commit 18f31db87b

View File

@@ -1,4 +1,8 @@
import { GlobalRegistrator } from "@happy-dom/global-registrator";
import { mock } from "bun:test";
GlobalRegistrator.register();
Object.assign(global, require('jest-chrome'))
// Mock GM_fetch
globalThis.GM_fetch = mock(async () => {});