Skip to content

test: resolve firebase admin mocking mismatch in certificates generate endpoint tests#473

Open
DebasmitaBose0 wants to merge 1 commit into
ItsVikasA:mainfrom
DebasmitaBose0:test/fix-certificate-api-mocks
Open

test: resolve firebase admin mocking mismatch in certificates generate endpoint tests#473
DebasmitaBose0 wants to merge 1 commit into
ItsVikasA:mainfrom
DebasmitaBose0:test/fix-certificate-api-mocks

Conversation

@DebasmitaBose0

Copy link
Copy Markdown

Closes #472

Summary

Fixes Vitest mocks in the certificate generation endpoint tests.

Changes Made

  • Replaced client-side Firebase mocks with server-side admin SDK stubs.
  • Defined property getters mapping exists to match Firestore Admin's behavior.

Testing

  • Ran tests locally via npx vitest run src/app/api/certificates/generate/route.test.js.

Impact

Resolves local/CI test suite failures.

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@DebasmitaBose0 is attempting to deploy a commit to the Vikas' projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: resolve firebase admin mocking mismatch in certificates generate endpoint tests

1 participant