Skip to content

Files

Latest commit

73e34e2 · Feb 14, 2023

History

History
This branch is 1 commit ahead of, 83 commits behind firebase/functions-samples:main.

test-functions-jest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 14, 2023
May 10, 2022
May 10, 2022
May 10, 2022

Firebase Functions Test (with jest) - 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 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.