First Unit Test Write a basic unit test to validate that Stripe & Firebase are initialized properly.

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 main.test.ts
import { fun } from './test-config';
fun.cleanup;

import { db, stripe } from '../src/config';


test('Firestore is initialized', () => {
    expect(db).toBeDefined();
});

test('Stripe is initialized', () => {
    expect(stripe).toBeDefined();

});

Q&A Chat