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.
Get Unlimited PRO Access

OR


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

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();

});

Questions?

Ask questions via GitHub below OR chat on Slack #questions