diff --git a/libs/users/application/src/lib/users.service.spec.ts b/libs/users/application/src/lib/users.service.spec.ts index 4d80ec3..38dc304 100644 --- a/libs/users/application/src/lib/users.service.spec.ts +++ b/libs/users/application/src/lib/users.service.spec.ts @@ -19,12 +19,12 @@ describe('UsersService', () => { }); it('should return a user by id', () => { - const user: User = service.findById('1'); + const user: User | undefined = service.findById('1'); expect(user).toEqual({ id: '1', name: 'John Doe' }); }); it('should return undefined if user is not found', () => { - const user: User = service.findById('3'); + const user: User | undefined = service.findById('3'); expect(user).toBeUndefined(); }); }); diff --git a/libs/users/presentation/src/lib/users.resolver.spec.ts b/libs/users/presentation/src/lib/users.resolver.spec.ts index c306133..411129c 100644 --- a/libs/users/presentation/src/lib/users.resolver.spec.ts +++ b/libs/users/presentation/src/lib/users.resolver.spec.ts @@ -1,8 +1,9 @@ import { Test, TestingModule } from '@nestjs/testing'; -import { UsersResolver } from './users.resolver'; -import { UsersService } from '../../../application/src/lib/users.service'; +import { UsersService } from '@users/application'; import { User } from '@user/domain'; +import { UsersResolver } from './users.resolver'; + describe('UsersResolver', () => { let resolver: UsersResolver; let service: UsersService;