Skip to content

Add Integration Test for the Register -> VerifyEmail flow with a mock DB #393

@codeZe-us

Description

@codeZe-us

User registration combined with email verification forms our primary conversion funnel. We need an integration test spanning these operations against a mocked database to guarantee transactional integrity.

Implementation Guidelines

Key Files: src/server/services/auth.service.spec.ts, src/server/test/db-utils.ts.

  • Spin up the transactional DB mock configurations.
  • Emulate the signup, database insertion of verification hashes, and the subsequent hash claiming process.

Expectations

What done looks like: An end-to-end service test sequentially creates an account, fetches the verification constraint, validates the email successfully, and finally clears the restriction in the DB mock.

Discord for any questions: codeze_us

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions