Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

Remove 'expect-firestore' and use firebase emulator to test security rules #415

Open
jamescrowley opened this issue Apr 18, 2019 · 0 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jamescrowley
Copy link
Contributor

jamescrowley commented Apr 18, 2019

Currently we use expect-firestore, which is a pretty dead library - https://github.com/GitbookIO/expect-firestore.

Instead, we should probably follow the suggestions here: https://firebase.google.com/docs/firestore/security/test-rules-emulator and use the rules emulator.

They will need to run in a NodeJS context rather than client-side context.

There is an example project: https://github.com/firebase/quickstart-nodejs/tree/master/firestore-emulator/javascript-quickstart

Hopefully once this is done, it will give us more views on whether we can use the emulators for further integration-y tests

@jamescrowley jamescrowley added good first issue Good for newcomers help wanted Extra attention is needed labels Apr 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants