Releases: firebase/firebase-functions-test
Releases · firebase/firebase-functions-test
v0.2.1
- wrap method now accepts resource as override in Context object, example:
const wrapped = test.wrap(require("../src/index").myFirestoreFunction);
wrapped(data, {
resource: {
name: ""projects/my-project/databases/(default)/documents/users/user-123",
},
});
v0.2.0
- [breaking] Update peer dependency requirement for firebase-functions to be v2.0.0 or above, and for firebase-admin to be v6.0.0 or above.
- Support scheduled functions (pull request #51).
- Support null value in
test.database.makeDataSnapshot
(issue #48). - Support
rawRequest
in the callable context object for a wrapped HTTP Callable function (issue #41).
v0.1.7
- Fixed bug where sample auth user data had an invalid lastSignInTime.
- Fixed bug where
wrap
failed with functions created with thehandler
namespace of firebase-functions.
v0.1.6
- HTTPS onCall functions are now supported! You can pass an HTTPS onCall function to
test.wrap
. test.storage.makeObjectMetadata
now automatically use the bucket from the Firebase configuration object that was used to initializefirebase-functions-test
.
v0.1.5
- Add support for Timestamp and DocumentReference values in
test.firestore.makeDocumentSnapshot
v0.1.4
- Updated firebase-admin peer dependency to >5.12.0
v0.1.3
- Update firebase-functions peer dependency to accept any versions above v1.0.1.
v0.1.2
- Fix bug where setting service account key file location when initializing the SDK wasn't working.
- Fix bug where
cleanup
was not in the TypeScript type definition of the top level module export.
v0.1.1
- Fix bug where methods such as
wrap
were nested underfeatures
instead of being available at the top level of the module.
v0.1.0
- Initial release of
firebase-functions-test
.