Gathering detailed insights and metrics for firebase-mock-functions
Gathering detailed insights and metrics for firebase-mock-functions
Gathering detailed insights and metrics for firebase-mock-functions
Gathering detailed insights and metrics for firebase-mock-functions
firebase-functions-mock
Work locally with firebase functions
@undefinedai/graphql-firebase
A graphql server that runs on Firebase Functions and Firebase Hosting. Provides a web interface with GraphQL Voyager and playgrounds, mock queries for testing, and lots of options for customizing everything to your needs.
npm install firebase-mock-functions
Typescript
Module System
Node Version
NPM Version
CoffeeScript (90.01%)
JavaScript (9.99%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
17 Commits
1 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Jun 04, 2022
Latest Version
0.2.3
Package Id
firebase-mock-functions@0.2.3
Size
2.89 kB
NPM Version
5.6.0
Node Version
6.11.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
2
4
Test your Firebase database triggers offline
npm install --save-dev firebase-mock-functions
1var chai = require('chai'); 2chai.use(require('chai-as-promised')); 3 4var FakeDatabase = require('firebase-mock-functions'); 5var functions = require('firebase-functions'); 6var admin = require('firebase-admin'); 7var db = new FakeDatabase(functions, admin); 8db.override(); 9db.database.autoFlush(true); 10 11// Your Firebase functions "index.js". 12// This contains a function which sums /items values and saves to /total 13var index = require('index'); 14 15db.setFunctionsModule(index); 16 17describe('count total', function() { 18 19 beforeEach(function() { 20 return db.setWithoutTriggers('/', { items: { one: 1, two: 2}, total: 3 }); 21 }); 22 23 it('updates "/total" when a new item is added', function() { 24 return db.write('/items/three', 3) 25 .then(function() { return db.value('/total') }) 26 .should.eventually.equal(6); 27 }); 28 29});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/15 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
83 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More