Skip to content

Writing a Jest-based integration test against Firestore #4719

Answered by mikehardy
electricmonk asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there!
Please investigate our own testing infrastructure for demonstrations of either:

  1. how to mock it out: https://github.com/invertase/react-native-firebase/blob/master/jest.setup.ts or
  2. a clear indication that in order to run it you will have to be running in react-native inside an emulator, and just set your emulator:

const firestore = firebase.firestore();
firestore.settings({ host: 'localhost:8080', ssl: false, persistence: true });

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@mikehardy
Comment options

Answer selected by electricmonk
Comment options

You must be logged in to vote
4 replies
@mikehardy
Comment options

@electricmonk
Comment options

@mikehardy
Comment options

@electricmonk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants