Skip to content

Releases: firebase/firebase-functions-test

v0.2.1

15 Apr 17:43
100d4dd

Choose a tag to compare

  • 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

26 Feb 01:10
bdc5030

Choose a tag to compare

  • [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

04 Nov 23:22

Choose a tag to compare

  • Fixed bug where sample auth user data had an invalid lastSignInTime.
  • Fixed bug where wrap failed with functions created with the handler namespace of firebase-functions.

v0.1.6

12 Dec 18:38

Choose a tag to compare

  • 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 initialize firebase-functions-test.

v0.1.5

19 Nov 19:42

Choose a tag to compare

  • Add support for Timestamp and DocumentReference values in test.firestore.makeDocumentSnapshot

v0.1.4

09 Oct 22:20

Choose a tag to compare

  • Updated firebase-admin peer dependency to >5.12.0

v0.1.3

24 Jul 16:15

Choose a tag to compare

  • Update firebase-functions peer dependency to accept any versions above v1.0.1.

v0.1.2

27 Apr 18:29

Choose a tag to compare

  • 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

04 Apr 18:49

Choose a tag to compare

  • Fix bug where methods such as wrap were nested under features instead of being available at the top level of the module.

v0.1.0

03 Apr 18:30

Choose a tag to compare

  • Initial release of firebase-functions-test.