This project how the browser opened by Cypress cannot connect to the Firestore emulator.
- Start the emulators:
yarn emulators
- In a new terminal window, seed the emulated datbases with data:
yarn seed
(callsscripts/seeddb.js
) - Start the app by running:
yarn start
- Visit
localhost:3000
in your browser - notice that data loads from both emulated databases - In another terminal window, open the test runner by running:
yarn test
- Run the projects tests by clicking on "Projects.spec.js"
NOTE When running in normal browser Projects appear for both databases, but when running in Cypress, only Real Time Database emulator works (not Firestore):