diff options
| author | stonedDiscord <Tukz@gmx.de> | 2026-01-01 16:44:28 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2026-01-01 16:44:28 +0100 |
| commit | b247ed9347921e395e34e5cf19085f529de4c307 (patch) | |
| tree | dd34450bda72f3ebaaa644c6779bb810476958b7 | |
| parent | 56db8cc6d68748ecdd163c27d4cf7e5dfd8e295f (diff) | |
try this
| -rw-r--r-- | webAO/__tests__/aoml.test.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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: |
