{"id":15839897,"url":"https://github.com/gustavohenke/mockbase","last_synced_at":"2025-03-15T18:33:39.616Z","repository":{"id":38147726,"uuid":"67327584","full_name":"gustavohenke/mockbase","owner":"gustavohenke","description":"Firebase v7+ mock.","archived":false,"fork":false,"pushed_at":"2023-01-06T01:33:05.000Z","size":864,"stargazers_count":3,"open_issues_count":7,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T04:04:41.377Z","etag":null,"topics":["firebase","mock","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/mockbase","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gustavohenke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-04T05:33:36.000Z","updated_at":"2022-04-09T03:33:15.000Z","dependencies_parsed_at":"2023-02-05T01:31:38.769Z","dependency_job_id":null,"html_url":"https://github.com/gustavohenke/mockbase","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavohenke%2Fmockbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavohenke%2Fmockbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavohenke%2Fmockbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavohenke%2Fmockbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gustavohenke","download_url":"https://codeload.github.com/gustavohenke/mockbase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243775752,"owners_count":20346251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","mock","typescript"],"created_at":"2024-10-05T16:40:30.538Z","updated_at":"2025-03-15T18:33:39.136Z","avatar_url":"https://github.com/gustavohenke.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mockbase\n\n[![Build status](https://img.shields.io/travis/gustavohenke/mockbase.svg?style=flat-square)](https://travis-ci.org/gustavohenke/mockbase)\n[![Coverage](https://img.shields.io/coveralls/github/gustavohenke/mockbase.svg?style=flat-square)](https://coveralls.io/github/gustavohenke/mockbase)\n\nFirebase v7+ mock. Great for unit testing and [Storybooks](https://storybook.js.org).\nBuilt-in support for TypeScript included.\n\nHowever, please note that not all features are implemented.\nTake a look at the [implemented features table](#implemented-features) to find out what is available and what is not.\n\n## How to use\n\nWherever you would use Firebase's app or its features, you pass a Mockbase app or feature instance:\n\n```ts\nconst firebase = require(\"firebase\");\nfunction signInWithFacebook(firebaseAuth: firebase.auth.Auth) {\n  firebaseAuth.signInWithPopup(new firebase.auth.FacebookAuthProvider());\n}\n\nfunction addTodo(text: string, todoCollection: firebase.firestore.CollectionReference) {\n  return todoCollection.add({ text });\n}\n\nconst MockApp = require(\"mockbase\");\nconst app = new MockApp(\"app name\");\nsignInWithFacebook(app.auth());\naddTodo(\"Clean home up\", app.firestore().collection(\"todo\"));\n```\n\n## Implemented features\n\n| Feature group | Status                |\n| ------------- | --------------------- |\n| Analytics     | ❌ Not implemented    |\n| Auth          | ⚠️ Partly implemented |\n| Database      | ❌ Not implemented    |\n| Firestore     | ✅ Implemented\\*      |\n| Functions     | ❌ Not implemented    |\n| Installations | ❌ Not implemented    |\n| Messaging     | ❌ Not implemented    |\n| Performance   | ❌ Not implemented    |\n| Remote config | ❌ Not implemented    |\n| Storage       | ❌ Not implemented    |\n\n_\\*_ There's no difference between server and cache, thus there won't be pending writes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavohenke%2Fmockbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgustavohenke%2Fmockbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavohenke%2Fmockbase/lists"}