aboutsummaryrefslogtreecommitdiff
path: root/webAO/__tests__
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/__tests__')
-rw-r--r--webAO/__tests__/aoml.test.ts6
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: