Skip to content

Commit

Permalink
test: 🧪 inject GetUserUseCase in test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Nov 19, 2024
1 parent bb583de commit 191b4dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/users/application/src/lib/users.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import { Test, TestingModule } from '@nestjs/testing';
import { User } from '@users/domain';

import { UsersService } from './users.service';
import { GetUserUseCase } from './use-cases/get-user.use-case';

describe('UsersService', () => {
let service: UsersService;

beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [UsersService],
providers: [UsersService, GetUserUseCase],
}).compile();

service = module.get<UsersService>(UsersService);
Expand Down

0 comments on commit 191b4dd

Please sign in to comment.