Closed
Description
Related issues
firebase/firebase-functions-test#241
A PR to fix it has been provided here:
firebase/firebase-functions-test#243
[REQUIRED] Version info
node: 20
firebase-functions: 6.0.0
firebase-tools: 13.27.0
firebase-admin: 13.0.1
firebase-functions-test: 3.3.0
[REQUIRED] Test case
- Install
firebase-functions
>6.0.0
- Install
firebase-functions-test
any version, e.g.3.3.0
- Run the following code:
const userRecord: UserRecord = testEnv.auth.makeUserRecord({
email: customer.email,
displayName: customer.displayName,
uid: userUid,
});
[REQUIRED] Steps to reproduce
[REQUIRED] Expected behavior
No errors are thrown.
[REQUIRED] Actual behavior
Errors are thrown due to the import requirements changing.
TypeError: Cannot read properties of undefined (reading 'userRecordConstructor')
at Object.makeUserRecord (node_modules/firebase-functions-test/lib/providers/auth.js:30:38)
at mockCustomer (test/helpers/customers.ts:10:47)
at Context.<anonymous> (test/purchases/handlers/savePurchase.spec.ts:11:38)
at processImmediate (node:internal/timers:478:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
Were you able to successfully deploy your functions?
n/a
Metadata
Metadata
Assignees
Labels
No labels