Comments (5)
You should be able to pass any of the auth methods to failNext
to have that method error on next call. The list of auth methods can be found here: https://github.com/soumak77/firebase-mock/blob/master/src/auth.js#L75-L80
from firebase-mock.
Thx @soumak77 . Will try it ASAP. I'm working on a library to sync firebase with redux: https://github.com/TarikHuber/firekit It has no dependencies and only functional programming. I'm trying to get the tests to 100% (status now 90%). A feedback from you would be awesome 😄
from firebase-mock.
@TarikHuber have you checked out https://github.com/firebase/reactfire? That might help
from firebase-mock.
Thx @soumak77 for the suggestion. I know that project. It is unfortunately very component based. Some project use redux as single state of truth so a redux sync is required. It also enables sync that is not limited by a component and firekit is in that sense the only library that supports persistent sync. But this is probably the wrong place to discuss such things ;)
from firebase-mock.
closing as resolved
from firebase-mock.
Related Issues (20)
- firebase.auth().createUser fails silently when it has `await` HOT 2
- Is this project still being maintained? HOT 3
- OMG - BREAKING ISSUE - Everything's messed up
- Add LICENSE file
- Type definition for type script
- How to check if firestore where function is called with params
- mockfirebase ref is not a function
- Add support for auth getUserByPhoneNumber and listUsers methods
- Issues with Jest
- `initializeApp` does not return `functions` method
- Firebase-mock's firestore() function does not return a singleton HOT 2
- Cannot be used in webpack/browser, due to require("fs") HOT 1
- Maintainer is deceased HOT 10
- Mock database sharding HOT 1
- Incorrect Bucket File download Api HOT 1
- Add support for messaging in Admin SDK HOT 9
- npm install fails on macOS with node HOT 1
- Firebase Query equalTo does not support booleans
- Replace use of deprecated method sinon.reset() in tests
- onNext is not a function Jest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-mock.