firebase-mock
firebase-mock copied to clipboard
Firebase mock library for writing unit tests
Bumps [karma](https://github.com/karma-runner/karma) from 2.0.2 to 6.3.16. Release notes Sourced from karma's releases. v6.3.16 6.3.16 (2022-02-10) Bug Fixes security: mitigate the "Open Redirect Vulnerability" (ff7edbb) v6.3.15 6.3.15 (2022-02-05) Bug Fixes helper:...
It looks like @soumak77 tragically [passed away last year](https://www.legacy.com/obituaries/name/brian-soumakian-obituary?pid=190616392&page=2). I'll be initiating a name dispute on NPM and accepting pull requests at my own fork. Anyone else willing to help...
# Example ```typescript const unsubFirestore = FirebaseProvider.firestore() .collection(FirestoreCollections.ProfilesCollectionName) .doc(user?.uid) .onSnapshot({ next: (snap) => DocumentSnapshotToHookWithItem( snap, onSnapshot, ), error: (error) => { setProfileItem({...profileItem, error}); }, }); ``` # Expected behavior Mocked...
Do I just need to cycle through and call `.delete()` for all documents between tests, or is there a better way? I'm using Jest as the test runner.
Currently Firebase messaging in the admin SDK is not supported. Are there any plans to add support for this? In my case I need to test/mock multicast message (`sendMulticast()`).
I found some weird issue with `auth()` mock object. Here is my code: ``` const mocksdk = firebasemock.MockFirebaseSdk(null, function () { return mockauth; }, function () { return mockfirestore; });...
Bumps [lodash.merge](https://github.com/lodash/lodash) from 4.6.1 to 4.6.2. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Hi. I've checked your sample code but can't figure out how to use it. Here is my source code. ``` addListener () { this.db.ref('age').once('value', (snap) => { ... } );...
The [signInWithEmailAndPassword](https://firebase.google.com/docs/reference/js/firebase.auth.Auth#signInWithEmailAndPassword) method is supposed to return a promise containing [UserCredential] (https://firebase.google.com/docs/reference/js/firebase.auth#.UserCredential) but it returns a partial user object (https://github.com/soumak77/firebase-mock/blob/master/src/firebase-auth.js#L124) In fact all return a UserCredential except signInWithCredential which does...
This is very similar to #116 however this doesn't make use of `eval` which is a security issue.