Skip to content

Commit

Permalink
fix import cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap committed Jan 9, 2024
1 parent 94d113f commit f8533fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/server/src/modules/group/entity/group-user.entity.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Embeddable, ManyToOne } from '@mikro-orm/core';
import { Role, User } from '@shared/domain/entity';
import { Role } from '@shared/domain/entity/role.entity';
import { User } from '@shared/domain/entity/user.entity';

export interface GroupUserEntityProps {
user: User;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest';
import { LegacySchoolService } from '@modules/legacy-school';
import { Test, TestingModule } from '@nestjs/testing';
import { SchoolFeature } from '@shared/domain/types';
import { setupEntities, userLoginMigrationDOFactory } from '@shared/testing';
import { userLoginMigrationDOFactory } from '@shared/testing';
import { UserLoginMigrationRevertService } from './user-login-migration-revert.service';
import { UserLoginMigrationService } from './user-login-migration.service';

Expand All @@ -14,8 +14,6 @@ describe('UserLoginMigrationRevertService', () => {
let userLoginMigrationService: DeepMocked<UserLoginMigrationService>;

beforeAll(async () => {
await setupEntities();

module = await Test.createTestingModule({
providers: [
UserLoginMigrationRevertService,
Expand Down

0 comments on commit f8533fc

Please sign in to comment.