Testing Setup with Jest Configure Jest with Firebase Cloud Functions testing utilities.

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.

*Enrollment provides full access to this course (and updates) for life.

Or Signup for Unlimited PRO Access

file_type_typescript test-config.ts
import * as TestFunctions from 'firebase-functions-test';

const firebaseConfig = {
    databaseURL: "https://your-app.firebaseio.com",
    projectId: "your-app",
    storageBucket: "your-app.appspot.com",

const envConfig = { stripe: { secret: 'sk_test_yourkey' }};

const fun = TestFunctions(firebaseConfig, 'service-account.json')


export { fun };

Q&A Chat