Closed Ridermansb closed 3 years ago
You need to either pass a bucket explicitly, e.g.
processMenuImages: functions
.runWith(runtimeStorageOpts)
.storage.bucket("SOME_BUCKET").object()
.onFinalize(processMenuImages),
or you need to set the FIREBASE_CONFIG
environment variable, which includes a default bucket name.
I'm trying to create test for storage but..
TypeError: Cannot read property 'storageBucket' of null
is throwVersion info
"firebase-admin": "^9.1.1".
"firebase-functions": "^3.11.0" "firebase-functions-test": "^0.2.2"
Test case
Creating new trigger for storage
onFinalize
and try to test itSteps to reproduce
Create trigger function that will be trigger on
onFinalize
The
processMenuImages
function it's just function..And try to test...
Actual behavior
Once I start the test, I received this...
Expected behavior
Should all test working..