Skip to content

Files

Latest commit

06f7b49 · Jan 31, 2025

History

History

test-functions-jest-ts

Firebase Functions Test (with jest-ts) - Quickstart

This quickstart demonstrates how to run unit tests on gen-2 functions.

Setting up the sample

  1. Clone or download this repo and open the 2nd-gen/test-functions-jest-ts directory.
  2. Install Cloud Functions dependencies locally by running: cd functions; npm install; cd -

Test

  1. Run your unit test with npm test.

Next Steps

Write your own functions using a testing-framework that best fits your use case.