{"id":13468620,"url":"https://github.com/soumak77/firebase-mock","last_synced_at":"2025-04-12T21:33:55.271Z","repository":{"id":12488178,"uuid":"71967692","full_name":"soumak77/firebase-mock","owner":"soumak77","description":"Firebase mock library for writing unit tests","archived":false,"fork":false,"pushed_at":"2022-12-06T17:00:18.000Z","size":3058,"stargazers_count":350,"open_issues_count":62,"forks_count":96,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-29T22:56:37.947Z","etag":null,"topics":["firebase","firebase-admin","firebase-auth","firebase-database","firebase-firestore","firebase-functions","firebase-storage","mock","mocking","mocking-library","mocks","testing","unit-testing"],"latest_commit_sha":null,"homepage":"https://soumak77.github.io/firebase-mock","language":"JavaScript","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/soumak77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-26T04:54:54.000Z","updated_at":"2024-09-19T19:13:04.000Z","dependencies_parsed_at":"2022-08-03T05:00:58.766Z","dependency_job_id":null,"html_url":"https://github.com/soumak77/firebase-mock","commit_stats":null,"previous_names":[],"tags_count":114,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soumak77%2Ffirebase-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soumak77%2Ffirebase-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soumak77%2Ffirebase-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soumak77%2Ffirebase-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soumak77","download_url":"https://codeload.github.com/soumak77/firebase-mock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248636780,"owners_count":21137520,"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","firebase-admin","firebase-auth","firebase-database","firebase-firestore","firebase-functions","firebase-storage","mock","mocking","mocking-library","mocks","testing","unit-testing"],"created_at":"2024-07-31T15:01:15.042Z","updated_at":"2025-04-12T21:33:55.244Z","avatar_url":"https://github.com/soumak77.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"Firebase Mock [![Build Status](https://travis-ci.org/soumak77/firebase-mock.svg?branch=master)](https://travis-ci.org/soumak77/firebase-mock)\n============\n\nFirebase Mock extends [mockfirebase](https://github.com/katowulf/mockfirebase) to provide support for the following Firebase Javascript SDKS:\n- [firebase](https://github.com/firebase/firebase-js-sdk)\n- [firebase-admin](https://github.com/firebase/firebase-admin-node)\n- [firebase-functions](https://github.com/firebase/firebase-functions)\n\n## Setup\n```bash\nnpm install firebase-mock --save-dev\n```\nFollow the steps in the [Setup Tutorial](tutorials/integration/setup.md) to create a mock SDK to be used in your tests.  Then follow one of the tutorials below based on your testing framework:\n* [Proxyquire](tutorials/integration/proxyquire.md)\n* [Jest](tutorials/integration/jest.md)\n* [Window Override](tutorials/integration/window.md)\n\n## API\n\nFirebase Mock supports the client-side [JavaScript API](https://firebase.google.com/docs/reference/js/) and server-side [Admin API](https://firebase.google.com/docs/reference/admin/node/) plus a small set of utility methods documented fully in the [API Reference](API.md). Rather than make a server call that is actually asynchronous, Firebase Mock allows you to either trigger callbacks synchronously or asynchronously with a specified delay ([`ref.flush`](API.md#flushdelay---ref)).\n\n## Tutorials\n### Client ([firebase](https://github.com/firebase/firebase-js-sdk))\n* Authentication\n  * [Basic](tutorials/client/auth/authentication.md)\n  * [JWT Tokens](tutorials/client/auth/tokens.md)\n* Realtime Database\n  * [Basic](tutorials/client/rtdb/basic.md)\n  * [Simulating Errors](tutorials/client/rtdb/errors.md)\n  * [Ordering](tutorials/client/rtdb/spies.md)\n* [Firestore](tutorials/client/firestore.md)\n* [Storage](tutorials/client/storage.md)\n\n### Admin ([firebase-admin](https://github.com/firebase/firebase-admin-node))\n* Authentication\n  * [Basic](tutorials/admin/authentication.md)\n  * [JWT Tokens](tutorials/admin/tokens.md)\n* [Realtime Database](tutorials/admin/rtdb.md)\n* [Firestore](tutorials/admin/firestore.md)\n* [Storage](tutorials/admin/storage.md)\n\n### Functions ([firebase-functions](https://github.com/firebase/firebase-functions))\n* [Realtime Database](tutorials/functions/rtdb.md)\n* [Firestore](tutorials/functions/firestore.md)\n* [HTTP](tutorials/functions/http.md)\n\n## Alternatives\n* [firebase-server](https://github.com/urish/firebase-server)\n* [firebase-functions-test](https://firebase.google.com/docs/functions/unit-testing)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoumak77%2Ffirebase-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoumak77%2Ffirebase-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoumak77%2Ffirebase-mock/lists"}