Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.0 throws firebase-admin import error of @firebase/database-compat/standalone #195

Open
igorgarbuz opened this issue Mar 1, 2023 · 2 comments
Labels
Needs: Author Feedback Issues awaiting author feedback

Comments

@igorgarbuz
Copy link

igorgarbuz commented Mar 1, 2023

Version info

firebase-functions-test: 3.0.0

firebase-functions: 4.2.1

firebase-admin: 11.5.0

jest: 29.2.1

typescript: 4.9.3

Test case

Testing a firebase function.
After an update to the firebase-functions-test v3 and firebase-functions v4 and running a test file with jest there is an error:

  ● Test suite failed to run

    Cannot find module '@firebase/database-compat/standalone' from '../../node_modules/firebase-admin/lib/database/index.js'

    Require stack:
      /Users/igor/Dev/vogel_database/node_modules/firebase-admin/lib/database/index.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions/lib/common/providers/database.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions/lib/v1/providers/database.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions/lib/v1/index.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions-test/lib/v1.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions-test/lib/main.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions-test/lib/features.js
      /Users/igor/Dev/vogel_database/node_modules/firebase-functions-test/lib/index.js
      path/to/test/file.test.ts

Steps to reproduce

Install libraries with versions provided above. Run a jest test.

Expected behavior

Test runs without the error provided above.

Actual behavior

An error on @firebase/database-compat/standalone

@CorieW
Copy link

CorieW commented Dec 20, 2024

Hey @igorgarbuz

Are you able to confirm whether this still occurs with the latest version?

@CorieW CorieW added the Needs: Author Feedback Issues awaiting author feedback label Dec 20, 2024
@igorgarbuz
Copy link
Author

Sorry, cannot re-test as we had to change our testing strategy and the library is not used any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Issues awaiting author feedback
Projects
None yet
Development

No branches or pull requests

2 participants