0.6.1 • Published 4 years ago

mockbase v0.6.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Mockbase

Build status Coverage

Firebase v7+ mock. Great for unit testing and Storybooks. Built-in support for TypeScript included.

However, please note that not all features are implemented. Take a look at the implemented features table to find out what is available and what is not.

How to use

Wherever you would use Firebase's app or its features, you pass a Mockbase app or feature instance:

const firebase = require("firebase");
function signInWithFacebook(firebaseAuth: firebase.auth.Auth) {
  firebaseAuth.signInWithPopup(new firebase.auth.FacebookAuthProvider());
}

function addTodo(text: string, todoCollection: firebase.firestore.CollectionReference) {
  return todoCollection.add({ text });
}

const MockApp = require("mockbase");
const app = new MockApp("app name");
signInWithFacebook(app.auth());
addTodo("Clean home up", app.firestore().collection("todo"));

Implemented features

Feature groupStatus
Analytics❌ Not implemented
Auth⚠️ Partly implemented
Database❌ Not implemented
Firestore✅ Implemented*
Functions❌ Not implemented
Installations❌ Not implemented
Messaging❌ Not implemented
Performance❌ Not implemented
Remote config❌ Not implemented
Storage❌ Not implemented

* There's no difference between server and cache, thus there won't be pending writes.

0.6.1

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago