## Overview `UsersService` has no tests. The service is a dependency of `AuthService` and `UsersController`, so bugs here propagate widely. ## Test Cases to Cover - [ ] `create()` — creates and returns user record - [ ] `findById()` — returns user when found, returns `null` when not found - [ ] `findByEmail()` — returns user when found, returns `null` when not found - [ ] `update()` — applies partial updates and returns updated entity - [ ] `softDelete()` — sets `deletedAt` without removing the row ## File `src/users/users.service.spec.ts`
Overview
UsersServicehas no tests. The service is a dependency ofAuthServiceandUsersController, so bugs here propagate widely.Test Cases to Cover
create()— creates and returns user recordfindById()— returns user when found, returnsnullwhen not foundfindByEmail()— returns user when found, returnsnullwhen not foundupdate()— applies partial updates and returns updated entitysoftDelete()— setsdeletedAtwithout removing the rowFile
src/users/users.service.spec.ts