From 950bd45b2c1abd58a0bc46f1248dd7cdac76b2c0 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 18 Sep 2024 18:04:13 +0100 Subject: [PATCH] add ts ignore for mock --- packages/server/src/automations/tests/openai.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/automations/tests/openai.spec.ts b/packages/server/src/automations/tests/openai.spec.ts index 498d15b93c..342288a6a1 100644 --- a/packages/server/src/automations/tests/openai.spec.ts +++ b/packages/server/src/automations/tests/openai.spec.ts @@ -123,6 +123,7 @@ describe("test the openai action", () => { expect(pro.ai.LargeLanguageModel).toHaveBeenCalledWith("gpt-4o-mini") + // @ts-ignore const llmInstance = pro.ai.LargeLanguageModel.mock.results[0].value expect(llmInstance.init).toHaveBeenCalled() expect(llmInstance.run).toHaveBeenCalledWith(prompt)