Currently utilizing:
"cypress-firebase": "^2.0.0",
"firebase-admin": "^9.11.1"
Within my cypress command.js
file:
import firebase from "firebase/app";
import "firebase/auth";
import "firebase/database";
import "firebase/firestore";
import { attachCustomCommands } from "cypress-firebase";
const fbConfig = {
}
firebase.initializeApp(fbConfig);
attachCustomCommands({ Cypress, cy, firebase });
Encountered the following issue when attempting to run the code:
TypeError
The error is within your test code, not Cypress:
> Cannot read property 'initializeApp' of undefined