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.
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 andfirebase-functions
v4 and running a test file with jest there is an error: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