bug: callFirestore not recognized in NextJS test
Opened this issue · 1 comments
Describe the bug
After following very simply the readme tutorial step by step, I open Cypress (cypress open
) and try running the hello world test. Unfortunately, it just doesn't recognize the function callFirestore
. cypress-firebase
is well installed in my package.json, just as cypress
and @types/cypress
, I have added the cypress.config.ts file juste like the readme told me. Actually there also is an issue there with types (Can't assign ExtendedCypressConfig to type PluginConfigOptions
) which I bypassed in a way by just typing it as PluginConfigOptions (just for tests purposes). Same for firebase and so on.
To Reproduce
Follow the readme on a Next environment (Next 13)
Expected behavior/code
I expected the test to at least run the function
Additional Context/Screenshots
@bquinch are you able to provide a full reproduction? Myself and team members are actively using cypress-firebase for testing NextJS apps (though I have to look if any are testing against Firestore), so would really want to get to the bottom of your issue.
I'm going to play around with pulling out a template Next app I have to add as an example to this repo.