firebase-functions-test
firebase-functions-test copied to clipboard
### Version info **firebase-functions-test:** 0.2.3 **firebase-functions:** 3.12.0 **firebase-admin:** 9.4.1 ### Test case Assume the following firebase function that triggers on a sub-field change: ```typescript functions.database.ref(`/users/{uid}/${fieldname}`).onWrite((change, context) => { const uid...
Fixes #79 Pretty self-explainatory, the optional property check is checking for a property called `app` (like from RDB), but the firestore property is called `firestoreApp`. The existing work-around when you...
While using the library to emulate a firestore document event, I noticed that I have to send the params separately. This is a suggestion to bind the params from the...
### Version info firebase-functions-test: v0.1.1 firebase-functions: v1.0.1 firebase-admin: v5.12.0 ### Steps to reproduce ```typescript let data = test.database.makeDataSnapshot({ valProp1: "hello", valProp2: 12345 }, "my/path/param1/param2"); await test.wrap(myFunctions.func1)(data); ``` ### Expected behavior...
### Version info **firebase-functions-test: **0.2.1** **firebase-functions: **3.6.2** **firebase-admin: **8.12.1** Hello and thank you for reading this. I am struggling for the past few days around this, but I just can't...
## Version info **firebase-functions-test:** 0.2.1 **firebase-functions:** 3.6.2 **firebase-admin:** 8.12.1 ### Test case Function ``` import * as admin from 'firebase-admin'; import * as functions from 'firebase-functions'; export const onUserCreation =...
This package uses legacy import/export syntax, the proposal was withdrawn and this syntax should not be used: https://github.com/firebase/firebase-functions-test/blob/a25faf5c87553b4482ce85a7dea4d11885f27cc4/src/index.ts#L29 https://github.com/firebase/firebase-functions-test/blob/c77aa92d345b8e4fb5ad98534989eb8dcf7d9bc4/spec/providers/https.spec.ts#L3 We could either use default export, or preferably a named one,...
### Version info **firebase-functions-test:** 0.1.6 **firebase-functions:** 3.2.0 **firebase-admin:** 8.3.0 **@firebase/testing:** 0.11.8 **firebase-tools:** 7.2.1 ### Test case ``` const firebase = require("@firebase/testing"); const test = require('firebase-functions-test')(); const admin = require('firebase-admin'); /**...
Bumps [jose](https://github.com/panva/jose) from 2.0.5 to 2.0.6. Release notes Sourced from jose's releases. v2.0.6 Fixes limit default PBES2 alg's computational expense (c1512be) Changelog Sourced from jose's changelog. 2.0.6 (2022-09-01) Bug Fixes...
Bumps [json-schema](https://github.com/kriszyp/json-schema) and [jsprim](https://github.com/joyent/node-jsprim). These dependencies needed to be updated together. Updates `json-schema` from 0.2.3 to 0.4.0 Commits f6f6a3b Use a little more robust method of checking instances ef60987 Update...