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
rawRequestin 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
wrapfailed with functions created with thehandlernamespace of firebase-functions.
v0.1.6
- HTTPS onCall functions are now supported! You can pass an HTTPS onCall function to
test.wrap. test.storage.makeObjectMetadatanow 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
cleanupwas not in the TypeScript type definition of the top level module export.
v0.1.1
- Fix bug where methods such as
wrapwere nested underfeaturesinstead of being available at the top level of the module.
v0.1.0
- Initial release of
firebase-functions-test.