Skip to content

Commit

Permalink
fix: updated dependencies in test to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chesterkmr committed Jun 28, 2023
1 parent d0c04b6 commit 94faefb
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { AppLoggerService } from '@/common/app-logger/app-logger.service';
import { UserActivityTrackerMiddleware } from '@/common/middlewares/user-activity-tracker.middleware';
import { PrismaModule } from '@/prisma/prisma.module';
import { commonTestingModules } from '@/test/helpers/nest-app-helper';
import { UserModule } from '@/user/user.module';
import { UserService } from '@/user/user.service';
import { UserRepository } from '@/user/user.repository';
import { Test, TestingModule } from '@nestjs/testing';
import { User } from '@prisma/client';
import { Request, Response } from 'express';
import dayjs from 'dayjs';
import { commonTestingModules } from '@/test/helpers/nest-app-helper';
import { PasswordService } from '@/auth/password/password.service';

describe('UserActivityTrackerMiddleware', () => {
const testUserPayload = {
Expand All @@ -25,7 +26,8 @@ describe('UserActivityTrackerMiddleware', () => {

beforeEach(async () => {
app = await Test.createTestingModule({
imports: [UserModule, PrismaModule, ...commonTestingModules],
imports: [PrismaModule, ...commonTestingModules],
providers: [UserService, UserRepository, PasswordService],
}).compile();
middleware = new UserActivityTrackerMiddleware(app.get(AppLoggerService), app.get(UserService));
userService = app.get(UserService);
Expand Down

0 comments on commit 94faefb

Please sign in to comment.