add ts ignore for mock

This commit is contained in:
Martin McKeaveney 2024-09-18 18:04:13 +01:00
parent 8a399bfbdf
commit 950bd45b2c
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ describe("test the openai action", () => {
expect(pro.ai.LargeLanguageModel).toHaveBeenCalledWith("gpt-4o-mini") expect(pro.ai.LargeLanguageModel).toHaveBeenCalledWith("gpt-4o-mini")
// @ts-ignore
const llmInstance = pro.ai.LargeLanguageModel.mock.results[0].value const llmInstance = pro.ai.LargeLanguageModel.mock.results[0].value
expect(llmInstance.init).toHaveBeenCalled() expect(llmInstance.init).toHaveBeenCalled()
expect(llmInstance.run).toHaveBeenCalledWith(prompt) expect(llmInstance.run).toHaveBeenCalledWith(prompt)