From b247ed9347921e395e34e5cf19085f529de4c307 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Thu, 1 Jan 2026 16:44:28 +0100 Subject: try this --- webAO/__tests__/aoml.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'webAO/__tests__') diff --git a/webAO/__tests__/aoml.test.ts b/webAO/__tests__/aoml.test.ts index f518863..54f0a56 100644 --- a/webAO/__tests__/aoml.test.ts +++ b/webAO/__tests__/aoml.test.ts @@ -43,6 +43,12 @@ jest.mock("../services/request", () => ({ requestBuffer: jest.fn().mockResolvedValue(new ArrayBuffer(0)) })); +// Ensure the mock is applied before any imports +beforeAll(() => { + jest.clearAllMocks(); + console.log("Mock applied:", request); +}); + describe("mlConfig", () => { beforeEach(() => { // Clear all instances and calls to constructor and all methods: -- cgit