1
0
Fork 0
mirror of synced 2024-09-24 21:31:17 +12:00

add ts ignore for mock

This commit is contained in:
Martin McKeaveney 2024-09-18 18:04:13 +01:00
parent 8a399bfbdf
commit 950bd45b2c

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)