🌐 AI搜索 & 代理 主页
Skip to content
Discussion options

You must be logged in to vote

It turns out this wasn't related to Cypress or how I was instantiating the component at all. It has to do with how the orchestrator gets injected, and my use of useToast in a composable from within a Pinia store. Previously, this used app.provide, which is available to inject into Pinia stores, but now it's provided on the component level, so in Pinia stores it is undefined. All I had to do was add the orchestratorPlugin, and everything worked fine. (Both in my app and in Cypress.)

app.use(orchestratorPlugin);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hackel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant