This quickstart demonstrates how to run unit tests on gen-2 functions.
- Clone or download this repo and open the
2nd-gen/test-functions-jest
directory. - Install Cloud Functions dependencies locally by running:
cd functions; npm install; cd -
- Run your unit test with
npm test
.
Write your own functions using a testing-framework that best fits your use case.