Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: callFirestore not recognized in NextJS test #741

Open
bquinch opened this issue Dec 27, 2022 · 1 comment
Open

bug: callFirestore not recognized in NextJS test #741

bquinch opened this issue Dec 27, 2022 · 1 comment
Labels
needs-repro Needs reproduction steps

Comments

@bquinch
Copy link

bquinch commented Dec 27, 2022

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

Capture d’écran 2022-12-27 à 16 06 54

@prescottprue
Copy link
Owner

@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.

@prescottprue prescottprue added the needs-repro Needs reproduction steps label Dec 30, 2022
@prescottprue prescottprue changed the title [NextJS] callFirestore not recognized bug: callFirestore not recognized in NextJS test Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-repro Needs reproduction steps
Projects
None yet
Development

No branches or pull requests

2 participants