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
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.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