7 Commits

Author SHA1 Message Date
chrismclarke
7bbb5431ba chore: update test timeout 2022-12-18 00:28:01 -08:00
chrismclarke
5517bc6d2a fix: functions test code 2022-12-17 15:17:38 -08:00
chrismclarke
9ee77da4bb fix: import resolution and jest http status mock 2022-10-31 10:51:28 -07:00
chrismclarke
9cb6260e37 feat: add support for functions runtime config in emulator 2022-06-28 11:57:00 -07:00
chrismclarke
81fd577314 chore: code tidying 2022-06-27 22:31:38 -07:00
Luke Watts
25e9e0d122 chore: apply prettier 2.x formatting 2022-03-29 21:28:37 +02:00
Luke Watts
410d6a798f test: introduce test infrastructure to functions (#1252)
* test: introduce tests

The aim of this change is to introduce the infrastructure so
that future contributors to the `functions` workspace can
be asked to include tests with minimal overhead.

A test has been added to demonstrate how functions triggered
by changes within the FireStore data can be validated.

If you want to run the tests locally you can do so using
the [firebase tools](https://www.npmjs.com/package/firebase-tools)

```bash
firebase emulators:exec --project default "jest ."
```

```bash
firebase emulators:exec --project default "jest . --watch"
```

* ci: downgrade jest to align with wider project

* feat: introduce tests

* chore: drop commit docs from this branch

* ci: reduce size of resouce class

* chore: align ts-jest with jest version

* docs: clarify wording for job

* fix: add jest types for functions

Co-authored-by: chrismclarke <chris.m.clarke@live.co.uk>
2022-02-02 13:30:43 -08:00