Gathering detailed insights and metrics for firebase-functions-test
Gathering detailed insights and metrics for firebase-functions-test
Gathering detailed insights and metrics for firebase-functions-test
Gathering detailed insights and metrics for firebase-functions-test
npm install firebase-functions-test
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (97.63%)
Shell (1.63%)
JavaScript (0.55%)
Dockerfile (0.18%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
241 Stars
188 Commits
61 Forks
53 Watchers
53 Branches
71 Contributors
Updated on Jun 28, 2025
Latest Version
3.4.1
Package Id
firebase-functions-test@3.4.1
Unpacked Size
131.63 kB
Size
25.75 kB
File Count
105
NPM Version
8.9.0
Node Version
14.19.1
Published on
Mar 10, 2025
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
3
The firebase-functions-test
is unit testing library for Cloud Functions for Firebase. It is a companion to firebase-functions.
NOTE: This library can only be used with firebase-functions
v3.20.1 or above.
wrap
your Firebase Functions. You can invoke the Firebase Function's handler by invoking the wrap
call.Eg.
1import {myFirebaseFunction} from "../index"; // Your Firebase Functions 2import firebaseFunctionsTest from "firebase-functions-test"; 3 4// Extracting `wrap` out of the lazy-loaded features 5const {wrap} = firebaseFunctionsTest(); 6 7// `jest-ts` example 8test('my unit test', () => { 9 const wrappedFirebaseFunction = wrap(myFirebaseFunction); 10 11 // Invoke the firebase function 12 wrappedFirebaseFunction(); 13 14 // Invoke the firebase function with CloudEvent overrides 15 wrappedFirebaseFunction({data: {arbitrary: 'values'}}); 16});
Learn more about unit testing Cloud Functions here.
To contribute a change, check out the contributing guide.
© Google, 2018. Licensed under The MIT License.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
3 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 14/30 approved changesets -- score normalized to 4
Reason
branch protection is not maximal on development and all release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 3
Details
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
26 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