Skip to content

[@exp] rules unit testing #4715

Answered by yuchenshi
laurentpayot asked this question in Q&A
Apr 2, 2021 · 4 comments · 24 replies
Discussion options

You must be logged in to vote

Aug 2021 update: We've released @firebase/rules-unit-testing v2, which is a major revamp and works with v9 JS SDK (modular / compat).

See our quickstarts on using the new RUTv2 API (docs: guide | reference). The instructions below are still possible for power users who wants to keep dependencies to a minimum (but you're pretty much on your own if you choose this path).


Earlier response:

As promised, useFirestoreEmulator(db, host, port, {mockUserToken: {...}}) is now released. Try it out with the new Beta modular SDK and let us know what you think! useDatabaseEmulator also got a similar upgrade and storage is coming soon also released.

Replies: 4 comments 24 replies

Comment options

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

Comment options

You must be logged in to vote
5 replies
@akauppi
Comment options

@Feiyang1
Comment options

@laurentpayot
Comment options

@akauppi
Comment options

@yuchenshi
Comment options

Comment options

You must be logged in to vote
17 replies
@laurentpayot
Comment options

@yuchenshi
Comment options

@laurentpayot
Comment options

@yuchenshi
Comment options

@laurentpayot
Comment options

Answer selected by yuchenshi
Comment options

You must be logged in to vote
1 reply
@rachelmyers
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
6 participants