firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Integration test for extensions-emulator bad error message for not setting project ID

Open christhompsongoogle opened this issue 1 year ago • 0 comments

npm run test:extensions-emulator

Run `npm audit` for details.
  CF3 and Extensions emulator
    1) "before all" hook for "should call a CF3 HTTPS function to write to the default Storage bucket, then trigger the resize images extension"
    2) "after all" hook for "should call a CF3 HTTPS function to write to the default Storage bucket, then trigger the resize images extension"


  0 passing (17ms)
  2 failing

  1) CF3 and Extensions emulator
       "before all" hook for "should call a CF3 HTTPS function to write to the default Storage bucket, then trigger the resize images extension":
     AssertionError: expected '' not to be empty
      at Context.<anonymous> (scripts/extensions-emulator-tests/tests.ts:50:49)
      at processImmediate (node:internal/timers:471:21)

  2) CF3 and Extensions emulator
       "after all" hook for "should call a CF3 HTTPS function to write to the default Storage bucket, then trigger the resize images extension":
     TypeError: Cannot read properties of undefined (reading 'stopEmulators')
      at Context.<anonymous> (scripts/extensions-emulator-tests/tests.ts:72:16)
      at processImmediate (node:internal/timers:471:21)

The resolution was to set a FBTOOLS_TARGET_PROJECT=demo-test

Similarly as discussed the functions deploy tests may have a similar issue.

christhompsongoogle avatar Feb 20 '24 23:02 christhompsongoogle