8
votes

From Firebase DOCS:

Run functions locally

The Firebase CLI includes a Cloud Functions emulator which can emulate the following function types:

  • HTTPS functions
  • Callable functions
  • Cloud Firestore functions

You can run functions locally to test them before deploying to production.

QUESTION

Is there a way to run cloud functions for Firebase Storage (ex: triggered by file upload) locally or do I need to actually deploy them for testing?

2

2 Answers

15
votes

firebaser here

The documentation you found is up to date. There is currently no way to run Cloud Storage triggered Cloud Functions in the Firebase emulator suite.

It might be worth filing a feature request or tracking the open feature requests on the Firebase tools repo.

3
votes

Storage has been implemented in firebase tools 9.11.0. I just took it for a test run, and I found that functions running in the emulator are, indeed, triggered by uploads to the emulated storage.

https://github.com/firebase/firebase-tools/issues/1738#issuecomment-843256335