Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 493 Bytes

File metadata and controls

18 lines (11 loc) · 493 Bytes

Firebase Functions Test (with mocha) - Quickstart

This quickstart demonstrates how to run unit tests on Cloud Functions (2nd gen).

Setting up the sample

  1. Clone or download this repo and open the 2nd-gen/test-functions-mocha 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.