firebase / firebase/firebase-tools

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

Open
#6,799 0 comments 0 reactions 1 assignee Claimed by @joehan View on GitHub
emulators: extensions type: bug
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

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. (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. (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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.