import { UsersService } from '../src/modules/users/users.service' ; import { User } from '../src/modules/users/user.entity' ; import { Repository } from 'typeorm' ; const userRepository = new Repository < User > ( ) ; export const testUser = { firstName : 'Test' , lastName : 'Test' , email : 'test@test.com' , password : 'securePw' , } ; export const mockUserService = { getById : id => ( { id , ... testUser } ) , } ; export const newUserService = new UsersService ( userRepository ) ;