You've already forked tf2wikipricing
test: GM_fetch not mocked depending on test order
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
import { GlobalRegistrator } from "@happy-dom/global-registrator";
|
import { GlobalRegistrator } from "@happy-dom/global-registrator";
|
||||||
|
import { mock } from "bun:test";
|
||||||
|
|
||||||
GlobalRegistrator.register();
|
GlobalRegistrator.register();
|
||||||
Object.assign(global, require('jest-chrome'))
|
Object.assign(global, require('jest-chrome'))
|
||||||
|
|
||||||
|
// Mock GM_fetch
|
||||||
|
globalThis.GM_fetch = mock(async () => {});
|
||||||
|
|||||||
Reference in New Issue
Block a user