diff --git a/server/src/fixture/deliveryFixture.ts b/server/fixture/deliveryFixture.ts similarity index 96% rename from server/src/fixture/deliveryFixture.ts rename to server/fixture/deliveryFixture.ts index 26fc80b..a3bc70c 100644 --- a/server/src/fixture/deliveryFixture.ts +++ b/server/fixture/deliveryFixture.ts @@ -1,5 +1,5 @@ import { userMock } from './memberFixture' -import { Delivery } from '../delivery/domain/delivery.entity' +import { Delivery } from '../src/delivery/domain/delivery.entity' export const deliveryMock = (): Delivery => { return { diff --git a/server/src/fixture/itemFixture.ts b/server/fixture/itemFixture.ts similarity index 91% rename from server/src/fixture/itemFixture.ts rename to server/fixture/itemFixture.ts index 4062036..9af9f93 100644 --- a/server/src/fixture/itemFixture.ts +++ b/server/fixture/itemFixture.ts @@ -1,5 +1,5 @@ -import { ItemStatusEnum } from '../items/domain/item-status.enum' -import { Item } from '../items/domain/item.entity' +import { ItemStatusEnum } from '../src/items/domain/item-status.enum' +import { Item } from '../src/items/domain/item.entity' import { userMock } from './memberFixture' export const itemMock = (): Item => { diff --git a/server/src/fixture/itemImageFixture.ts b/server/fixture/itemImageFixture.ts similarity index 97% rename from server/src/fixture/itemImageFixture.ts rename to server/fixture/itemImageFixture.ts index 5f71400..c585a71 100644 --- a/server/src/fixture/itemImageFixture.ts +++ b/server/fixture/itemImageFixture.ts @@ -1,4 +1,4 @@ -import { ItemImage } from '../item-images/domain/item-image.entity' +import { ItemImage } from '../src/item-images/domain/item-image.entity' import { itemMock } from './itemFixture' export const itemImageMock = (): ItemImage => { diff --git a/server/src/fixture/jwtTokenFixture.ts b/server/fixture/jwtTokenFixture.ts similarity index 93% rename from server/src/fixture/jwtTokenFixture.ts rename to server/fixture/jwtTokenFixture.ts index ab74dbb..7c3e634 100644 --- a/server/src/fixture/jwtTokenFixture.ts +++ b/server/fixture/jwtTokenFixture.ts @@ -1,4 +1,4 @@ -import { TokenType } from '../jwt/token-type.enum' +import { TokenType } from '../src/jwt/token-type.enum' export const jwtTokenFixture = () => { return { diff --git a/server/src/fixture/memberFixture.ts b/server/fixture/memberFixture.ts similarity index 84% rename from server/src/fixture/memberFixture.ts rename to server/fixture/memberFixture.ts index 40df6de..d27ff52 100644 --- a/server/src/fixture/memberFixture.ts +++ b/server/fixture/memberFixture.ts @@ -1,6 +1,6 @@ -import { Role } from '../members/domain/member-role.enum' -import { MemberType } from '../members/domain/member-type.enum' -import { Member } from '../members/domain/member.entity' +import { Role } from '../src/members/domain/member-role.enum' +import { MemberType } from '../src/members/domain/member-type.enum' +import { Member } from '../src/members/domain/member.entity' export const userMock = (): Member => { return { diff --git a/server/src/auth/signin/application/signin.service.test.ts b/server/src/auth/signin/application/signin.service.test.ts index 2ac07ab..10d82a3 100644 --- a/server/src/auth/signin/application/signin.service.test.ts +++ b/server/src/auth/signin/application/signin.service.test.ts @@ -8,8 +8,8 @@ import { InternalServerErrorException, BadRequestException } from '@nestjs/commo import { PasswordProvider } from '../../../members/application/password.provider' import { TokenIssuer } from '../../token/application/token.issuer' import { MemberNotFoundException } from '../../../members/application/error/member-not-found.exception' -import { userMock } from '../../../fixture/memberFixture' -import { jwtTokenFixture } from '../../../fixture/jwtTokenFixture' +import { userMock } from '../../../../fixture/memberFixture' +import { jwtTokenFixture } from '../../../../fixture/jwtTokenFixture' describe('Signup class', () => { let connect: Connection diff --git a/server/src/auth/signin/web/signin.controller.test.ts b/server/src/auth/signin/web/signin.controller.test.ts index fab6c06..039e512 100644 --- a/server/src/auth/signin/web/signin.controller.test.ts +++ b/server/src/auth/signin/web/signin.controller.test.ts @@ -8,8 +8,8 @@ import { SigninService } from '../application/signin.service' import { SigninController } from './signin.controller' import { TokenIssuer } from '../../token/application/token.issuer' import { MemberNotFoundException } from '../../../members/application/error/member-not-found.exception' -import { jwtTokenFixture } from '../../../fixture/jwtTokenFixture' -import { userMock } from '../../../fixture/memberFixture' +import { jwtTokenFixture } from '../../../../fixture/jwtTokenFixture' +import { userMock } from '../../../../fixture/memberFixture' import { LoginMemberDto } from '../../../members/dto/login-member.dto' import { SigninResponseDto } from '../dto/signin-response.dto' diff --git a/server/src/auth/signout/application/signout.service.test.ts b/server/src/auth/signout/application/signout.service.test.ts index 8af2dad..016c143 100644 --- a/server/src/auth/signout/application/signout.service.test.ts +++ b/server/src/auth/signout/application/signout.service.test.ts @@ -10,8 +10,8 @@ import { MemberNotFoundException } from '../../../members/application/error/memb import { NotAccessTokenTypeException } from '../../token/error/not-access-token-type.exception' import { InternalServerErrorException } from '@nestjs/common' import { TokenIssuer } from '../../token/application/token.issuer' -import { userMock } from '../../../fixture/memberFixture' -import { jwtTokenFixture } from '../../../fixture/jwtTokenFixture' +import { userMock } from '../../../../fixture/memberFixture' +import { jwtTokenFixture } from '../../../../fixture/jwtTokenFixture' describe('Signout class', () => { let connect: Connection diff --git a/server/src/auth/signout/web/signout.controller.test.ts b/server/src/auth/signout/web/signout.controller.test.ts index b0af54c..ff49818 100644 --- a/server/src/auth/signout/web/signout.controller.test.ts +++ b/server/src/auth/signout/web/signout.controller.test.ts @@ -8,7 +8,7 @@ import { JwtProvider } from '../../../jwt/jwt.provider' import { Response } from 'express' import { TokenIssuer } from '../../token/application/token.issuer' import { MemberNotFoundException } from '../../../members/application/error/member-not-found.exception' -import { jwtTokenFixture } from '../../../fixture/jwtTokenFixture' +import { jwtTokenFixture } from '../../../../fixture/jwtTokenFixture' describe('SignoutController class', () => { let signoutController: SignoutController diff --git a/server/src/auth/signup/application/signup.service.test.ts b/server/src/auth/signup/application/signup.service.test.ts index d2d5dbb..e01f7cb 100644 --- a/server/src/auth/signup/application/signup.service.test.ts +++ b/server/src/auth/signup/application/signup.service.test.ts @@ -6,7 +6,7 @@ import { MYSQL_CONNECTION } from '../../../database/constants' import { SignupService } from './signup.service' import { PasswordProvider } from '../../../members/application/password.provider' import { JwtProvider } from '../../../jwt/jwt.provider' -import { userMock } from '../../../fixture/memberFixture' +import { userMock } from '../../../../fixture/memberFixture' describe('Signup class', () => { let connect: Connection diff --git a/server/src/auth/signup/web/signup.controller.test.ts b/server/src/auth/signup/web/signup.controller.test.ts index 86efe5f..2f6fc49 100644 --- a/server/src/auth/signup/web/signup.controller.test.ts +++ b/server/src/auth/signup/web/signup.controller.test.ts @@ -5,7 +5,7 @@ import { Connection } from 'mysql2/promise' import { MemberRepository } from '../../../members/domain/member.repository' import { EmailChecker } from '../../../members/application/email.checker' import { MYSQL_CONNECTION } from '../../../database/constants' -import { userMock } from '../../../fixture/memberFixture' +import { userMock } from '../../../../fixture/memberFixture' import { SignupService } from '../application/signup.service' import { PasswordProvider } from '../../../members/application/password.provider' import { JwtProvider } from '../../../jwt/jwt.provider' diff --git a/server/src/auth/token/application/token.issuer.test.ts b/server/src/auth/token/application/token.issuer.test.ts index f16b1e1..b913e0a 100644 --- a/server/src/auth/token/application/token.issuer.test.ts +++ b/server/src/auth/token/application/token.issuer.test.ts @@ -4,11 +4,11 @@ import { TokenIssuer } from './token.issuer' import { MemberRepository } from '../../../members/domain/member.repository' import { MYSQL_CONNECTION } from '../../../database/constants' import { MemberNotFoundException } from '../../../members/application/error/member-not-found.exception' -import { userMock } from '../../../fixture/memberFixture' +import { userMock } from '../../../../fixture/memberFixture' import { JwtProvider } from '../../../jwt/jwt.provider' import { TokenExpiredException } from '../error/token_expired.exception' import { InternalServerErrorException } from '@nestjs/common' -import { jwtTokenFixture } from '../../../fixture/jwtTokenFixture' +import { jwtTokenFixture } from '../../../../fixture/jwtTokenFixture' describe('TokenIssuer class', () => { let connect: Connection diff --git a/server/src/auth/token/web/token.controller.test.ts b/server/src/auth/token/web/token.controller.test.ts index 085d383..db8e445 100644 --- a/server/src/auth/token/web/token.controller.test.ts +++ b/server/src/auth/token/web/token.controller.test.ts @@ -6,7 +6,7 @@ import { MYSQL_CONNECTION } from '../../../database/constants' import { JwtProvider } from '../../../jwt/jwt.provider' import { TokenController } from './token.controller' import { TokenIssuer } from '../application/token.issuer' -import { jwtTokenFixture } from '../../../fixture/jwtTokenFixture' +import { jwtTokenFixture } from '../../../../fixture/jwtTokenFixture' import { TokenExpiredException } from '../error/token_expired.exception' import { MemberNotFoundException } from '../../../members/application/error/member-not-found.exception' diff --git a/server/src/delivery/domain/delivery.repository.test.ts b/server/src/delivery/domain/delivery.repository.test.ts index d3df397..111594e 100644 --- a/server/src/delivery/domain/delivery.repository.test.ts +++ b/server/src/delivery/domain/delivery.repository.test.ts @@ -1,8 +1,8 @@ import { RowDataPacket } from 'mysql2/promise' import { MYSQL_CONNECTION } from '../../database/constants' import { DeliveryRepository } from './delivery.repository' -import { userMock } from '../../fixture/memberFixture' -import { dbDeliveriesMock } from '../../fixture/deliveryFixture' +import { userMock } from '../../../fixture/memberFixture' +import { dbDeliveriesMock } from '../../../fixture/deliveryFixture' import { Test, TestingModule } from '@nestjs/testing' describe('DeliveryRepository class', () => { diff --git a/server/src/delivery/domain/delivery.test.ts b/server/src/delivery/domain/delivery.test.ts index b938ead..76c5abc 100644 --- a/server/src/delivery/domain/delivery.test.ts +++ b/server/src/delivery/domain/delivery.test.ts @@ -1,6 +1,6 @@ -import { userMock } from '../../fixture/memberFixture' +import { userMock } from '../../../fixture/memberFixture' import { Delivery } from './delivery.entity' -import { deliveryMock } from '../../fixture/deliveryFixture' +import { deliveryMock } from '../../../fixture/deliveryFixture' describe('Delivery', () => { let delivery: Delivery diff --git a/server/src/item-images/application/item-image.creater.test.ts b/server/src/item-images/application/item-image.creater.test.ts index d3c1cf7..7688f3c 100644 --- a/server/src/item-images/application/item-image.creater.test.ts +++ b/server/src/item-images/application/item-image.creater.test.ts @@ -1,8 +1,8 @@ import { Test, TestingModule } from '@nestjs/testing' -import { itemMock } from '../../fixture/itemFixture' +import { itemMock } from '../../../fixture/itemFixture' import { MYSQL_CONNECTION } from '../../database/constants' import { Connection } from 'mysql2/promise' -import { fileMock, filesMock, itemImageMock } from '../../fixture/itemImageFixture' +import { fileMock, filesMock, itemImageMock } from '../../../fixture/itemImageFixture' import { ItemImageCreater } from './item-image.creater' import { ItemImageRepository } from '../../item-images/domain/item-image.repository' import { ItemRepository } from '../../items/domain/item.repository' diff --git a/server/src/item-images/application/item-image.updater.test.ts b/server/src/item-images/application/item-image.updater.test.ts index bd00ec0..7d52775 100644 --- a/server/src/item-images/application/item-image.updater.test.ts +++ b/server/src/item-images/application/item-image.updater.test.ts @@ -1,10 +1,10 @@ import { Test, TestingModule } from '@nestjs/testing' import { MYSQL_CONNECTION } from '../../database/constants' import { Connection } from 'mysql2/promise' -import { fileMock, filesMock, itemImageMock } from '../../fixture/itemImageFixture' +import { fileMock, filesMock, itemImageMock } from '../../../fixture/itemImageFixture' import { ItemImageRepository } from '../../item-images/domain/item-image.repository' import { ItemImageUpdater } from './item-image.updater' -import { itemMock } from '../../fixture/itemFixture' +import { itemMock } from '../../../fixture/itemFixture' describe('ItemImageUpdater class', () => { let itemImageUpdater: ItemImageUpdater diff --git a/server/src/item-images/domain/item-image.repository.test.ts b/server/src/item-images/domain/item-image.repository.test.ts index 74ed8e2..ce5c579 100644 --- a/server/src/item-images/domain/item-image.repository.test.ts +++ b/server/src/item-images/domain/item-image.repository.test.ts @@ -2,8 +2,8 @@ import { ResultSetHeader, RowDataPacket } from 'mysql2/promise' import { Test, TestingModule } from '@nestjs/testing' import { MYSQL_CONNECTION } from '../../database/constants' import { ItemImageRepository } from './item-image.repository' -import { dbItemImagesMock, itemImageMock } from '../../fixture/itemImageFixture' -import { itemMock } from '../../fixture/itemFixture' +import { dbItemImagesMock, itemImageMock } from '../../../fixture/itemImageFixture' +import { itemMock } from '../../../fixture/itemFixture' describe('ItemImageRepository class', () => { let itemImageRepository: ItemImageRepository diff --git a/server/src/item-images/domain/item-image.test.ts b/server/src/item-images/domain/item-image.test.ts index 3165f56..5ff2671 100644 --- a/server/src/item-images/domain/item-image.test.ts +++ b/server/src/item-images/domain/item-image.test.ts @@ -1,5 +1,5 @@ import { ItemImage } from './item-image.entity' -import { itemImageMock } from '../../fixture/itemImageFixture' +import { itemImageMock } from '../../../fixture/itemImageFixture' describe('ItemImage', () => { let itemImage: ItemImage diff --git a/server/src/items/application/item.creater.test.ts b/server/src/items/application/item.creater.test.ts index f4ee707..9426e6a 100644 --- a/server/src/items/application/item.creater.test.ts +++ b/server/src/items/application/item.creater.test.ts @@ -1,15 +1,15 @@ import { ItemRepository } from '../domain/item.repository' import { Test, TestingModule } from '@nestjs/testing' import { ItemCreater } from './item.creater' -import { itemMock } from '../../fixture/itemFixture' +import { itemMock } from '../../../fixture/itemFixture' import { MYSQL_CONNECTION } from '../../database/constants' import { Connection } from 'mysql2/promise' import { InternalServerErrorException } from '@nestjs/common' -import { userMock } from '../../fixture/memberFixture' +import { userMock } from '../../../fixture/memberFixture' import { MemberRepository } from '../../members/domain/member.repository' import { MemberNotFoundException } from '../../members/application/error/member-not-found.exception' import { when } from 'jest-when' -import { filesMock } from '../../fixture/itemImageFixture' +import { filesMock } from '../../../fixture/itemImageFixture' import { ItemImageCreater } from '../../item-images/application/item-image.creater' import { ItemImageRepository } from '../../item-images/domain/item-image.repository' diff --git a/server/src/items/application/item.reader.test.ts b/server/src/items/application/item.reader.test.ts index 92fe538..be1feae 100644 --- a/server/src/items/application/item.reader.test.ts +++ b/server/src/items/application/item.reader.test.ts @@ -1,6 +1,6 @@ import { ItemRepository } from '../domain/item.repository' import { Test, TestingModule } from '@nestjs/testing' -import { itemMock } from '../../fixture/itemFixture' +import { itemMock } from '../../../fixture/itemFixture' import { ItemReader } from './item.reader' import { MYSQL_CONNECTION } from '../../database/constants' import { Connection } from 'mysql2/promise' diff --git a/server/src/items/application/item.updater.test.ts b/server/src/items/application/item.updater.test.ts index e57ac8f..9c35382 100644 --- a/server/src/items/application/item.updater.test.ts +++ b/server/src/items/application/item.updater.test.ts @@ -2,16 +2,16 @@ import { Connection } from 'mysql2/promise' import { Test, TestingModule } from '@nestjs/testing' import { ItemUpdater } from './item.updater' import { ItemRepository } from '../domain/item.repository' -import { itemMock } from '../../fixture/itemFixture' +import { itemMock } from '../../../fixture/itemFixture' import { MYSQL_CONNECTION } from '../../database/constants' import { when } from 'jest-when' import { Item } from '../domain/item.entity' import { ItemStatusEnum } from '../domain/item-status.enum' -import { userMock } from '../../fixture/memberFixture' +import { userMock } from '../../../fixture/memberFixture' import { ItemNotFoundException } from '../error/item-not-found.exception' import { ItemUpdatedFailException } from '../error/item-updated-fail.exception' import { MemberRepository } from '../../members/domain/member.repository' -import { filesMock, itemImagesMock, itemImageMock } from '../../fixture/itemImageFixture' +import { filesMock, itemImagesMock, itemImageMock } from '../../../fixture/itemImageFixture' import { ItemImageUpdater } from '../../item-images/application/item-image.updater' import { ItemImageRepository } from '../../item-images/domain/item-image.repository' diff --git a/server/src/items/domain/item.repository.test.ts b/server/src/items/domain/item.repository.test.ts index 29a350a..a528c58 100644 --- a/server/src/items/domain/item.repository.test.ts +++ b/server/src/items/domain/item.repository.test.ts @@ -1,6 +1,6 @@ import { ResultSetHeader, RowDataPacket } from 'mysql2/promise' import { Test, TestingModule } from '@nestjs/testing' -import { dbItemMock, detailItemMock, itemMock } from '../../fixture/itemFixture' +import { dbItemMock, detailItemMock, itemMock } from '../../../fixture/itemFixture' import { ItemRepository } from './item.repository' import { MYSQL_CONNECTION } from '../../database/constants' diff --git a/server/src/items/domain/item.test.ts b/server/src/items/domain/item.test.ts index d4de1fd..0adbcc9 100644 --- a/server/src/items/domain/item.test.ts +++ b/server/src/items/domain/item.test.ts @@ -1,5 +1,5 @@ import { Item } from './item.entity' -import { itemMock } from '../../fixture/itemFixture' +import { itemMock } from '../../../fixture/itemFixture' describe('Item', () => { let items: Item diff --git a/server/src/items/web/item-create.controller.test.ts b/server/src/items/web/item-create.controller.test.ts index dc2a9a0..bf3aa44 100644 --- a/server/src/items/web/item-create.controller.test.ts +++ b/server/src/items/web/item-create.controller.test.ts @@ -2,14 +2,14 @@ import { Test, TestingModule } from '@nestjs/testing' import { ItemCreateController } from './item-create.controller' import { ItemCreater } from '../application/item.creater' import { ItemRepository } from '../domain/item.repository' -import { itemMock } from '../../fixture/itemFixture' +import { itemMock } from '../../../fixture/itemFixture' import { MYSQL_CONNECTION } from '../../database/constants' import { Connection } from 'mysql2/promise' import { CreateItemRequest } from '../dto/save-item.dto' import { InternalServerErrorException } from '@nestjs/common' import { JwtProvider } from '../../jwt/jwt.provider' import { when } from 'jest-when' -import { userMock } from '../../fixture/memberFixture' +import { userMock } from '../../../fixture/memberFixture' describe('ItemController class', () => { let itemController: ItemCreateController diff --git a/server/src/items/web/item-detail.controller.test.ts b/server/src/items/web/item-detail.controller.test.ts index 97a9e9d..73b4e5f 100644 --- a/server/src/items/web/item-detail.controller.test.ts +++ b/server/src/items/web/item-detail.controller.test.ts @@ -1,6 +1,6 @@ import { Test, TestingModule } from '@nestjs/testing' import { ItemRepository } from '../domain/item.repository' -import { itemMock } from '../../fixture/itemFixture' +import { itemMock } from '../../../fixture/itemFixture' import { ItemDetailController } from './item-detail.controller' import { ItemReader } from '../application/item.reader' import { MYSQL_CONNECTION } from '../../database/constants' diff --git a/server/src/items/web/item-update.controller.test.ts b/server/src/items/web/item-update.controller.test.ts index b3a0b43..34e92f7 100644 --- a/server/src/items/web/item-update.controller.test.ts +++ b/server/src/items/web/item-update.controller.test.ts @@ -4,12 +4,12 @@ import { ItemUpdater } from '../application/item.updater' import { ItemRepository } from '../domain/item.repository' import { MYSQL_CONNECTION } from '../../database/constants' import { Connection } from 'mysql2/promise' -import { itemMock } from '../../fixture/itemFixture' +import { itemMock } from '../../../fixture/itemFixture' import { UpdateItemRequest } from '../dto/update-item.dto' import { JwtProvider } from '../../jwt/jwt.provider' import { when } from 'jest-when' -import { userMock } from '../../fixture/memberFixture' -import { filesMock } from '../../fixture/itemImageFixture' +import { userMock } from '../../../fixture/memberFixture' +import { filesMock } from '../../../fixture/itemImageFixture' describe('ItemUpdateController class', () => { let itemController: ItemUpdateController diff --git a/server/src/jwt/jwt.provider.test.ts b/server/src/jwt/jwt.provider.test.ts index ef7cf24..95756e2 100644 --- a/server/src/jwt/jwt.provider.test.ts +++ b/server/src/jwt/jwt.provider.test.ts @@ -2,8 +2,8 @@ import { Test, TestingModule } from '@nestjs/testing' import { JwtProvider } from './jwt.provider' import { BadRequestException, UnauthorizedException } from '@nestjs/common' import { TokenType } from './token-type.enum' -import { userMock } from '../fixture/memberFixture' -import { jwtTokenFixture } from '../fixture/jwtTokenFixture' +import { userMock } from '../../fixture/memberFixture' +import { jwtTokenFixture } from '../../fixture/jwtTokenFixture' describe('JwtProvider class', () => { let jwtProvider: JwtProvider diff --git a/server/src/members/application/password.provider.test.ts b/server/src/members/application/password.provider.test.ts index df8d17a..9512d46 100644 --- a/server/src/members/application/password.provider.test.ts +++ b/server/src/members/application/password.provider.test.ts @@ -1,7 +1,7 @@ import { Test, TestingModule } from '@nestjs/testing' import { PasswordProvider } from './password.provider' import { BadRequestException } from '@nestjs/common' -import { userMock } from '../../fixture/memberFixture' +import { userMock } from '../../../fixture/memberFixture' describe('PasswordProvider class', () => { let passwordProvider: PasswordProvider diff --git a/server/src/members/domain/member.repository.test.ts b/server/src/members/domain/member.repository.test.ts index 862e89e..a713673 100644 --- a/server/src/members/domain/member.repository.test.ts +++ b/server/src/members/domain/member.repository.test.ts @@ -2,7 +2,7 @@ import { Test, TestingModule } from '@nestjs/testing' import { Connection, ResultSetHeader, RowDataPacket } from 'mysql2/promise' import { MemberRepository } from './member.repository' import { MYSQL_CONNECTION } from '../../database/constants' -import { dbMemberMock, userMock } from '../../fixture/memberFixture' +import { dbMemberMock, userMock } from '../../../fixture/memberFixture' describe('MemberRepository class', () => { let connection: Connection diff --git a/server/src/members/domain/member.test.ts b/server/src/members/domain/member.test.ts index 0e5eb93..8b921a6 100644 --- a/server/src/members/domain/member.test.ts +++ b/server/src/members/domain/member.test.ts @@ -1,5 +1,5 @@ import { Member } from './member.entity' -import { userMock } from '../../fixture/memberFixture' +import { userMock } from '../../../fixture/memberFixture' import { Role } from './member-role.enum' import { MemberType } from './member-type.enum' diff --git a/server/test/item-create.e2e-spec.ts b/server/test/item-create.e2e-spec.ts index 182a55b..b15183e 100644 --- a/server/test/item-create.e2e-spec.ts +++ b/server/test/item-create.e2e-spec.ts @@ -11,7 +11,7 @@ import * as request from 'supertest' import { ItemCreater } from '../src/items/application/item.creater' import { ItemReader } from '../src/items/application/item.reader' import { ItemUpdater } from '../src/items/application/item.updater' -import { itemMock } from '../src/fixture/itemFixture' +import { itemMock } from '../fixture/itemFixture' import { ItemUpdateController } from '../src/items/web/item-update.controller' import { ItemDetailController } from '../src/items/web/item-detail.controller' import { ItemCreateController } from '../src/items/web/item-create.controller' @@ -20,9 +20,9 @@ import { MYSQL_CONNECTION } from '../src/database/constants' import { Connection } from 'mysql2/promise' import { CreateItemRequest } from '../src/items/dto/save-item.dto' import { MemberRepository } from '../src/members/domain/member.repository' -import { userMock } from '../src/fixture/memberFixture' +import { userMock } from '../fixture/memberFixture' import { JwtAuthGuard } from '../src/config/auth/guards/jwt-auth.guard' -import { jwtTokenFixture } from '../src/fixture/jwtTokenFixture' +import { jwtTokenFixture } from '../fixture/jwtTokenFixture' import { JwtProvider } from '../src/jwt/jwt.provider' import { RolesGuard } from '../src/config/auth/guards/role-auth.guard' import { when } from 'jest-when' diff --git a/server/test/item-detail.e2e-spec.ts b/server/test/item-detail.e2e-spec.ts index 5690408..a4625ae 100644 --- a/server/test/item-detail.e2e-spec.ts +++ b/server/test/item-detail.e2e-spec.ts @@ -4,7 +4,7 @@ import * as request from 'supertest' import { ItemCreater } from '../src/items/application/item.creater' import { ItemReader } from '../src/items/application/item.reader' import { ItemUpdater } from '../src/items/application/item.updater' -import { itemMock } from '../src/fixture/itemFixture' +import { itemMock } from '../fixture/itemFixture' import { ItemUpdateController } from '../src/items/web/item-update.controller' import { ItemDetailController } from '../src/items/web/item-detail.controller' import { ItemCreateController } from '../src/items/web/item-create.controller' @@ -12,9 +12,9 @@ import { ItemRepository } from '../src/items/domain/item.repository' import { MYSQL_CONNECTION } from '../src/database/constants' import { Connection } from 'mysql2/promise' import { MemberRepository } from '../src/members/domain/member.repository' -import { userMock } from '../src/fixture/memberFixture' +import { userMock } from '../fixture/memberFixture' import { JwtAuthGuard } from '../src/config/auth/guards/jwt-auth.guard' -import { jwtTokenFixture } from '../src/fixture/jwtTokenFixture' +import { jwtTokenFixture } from '../fixture/jwtTokenFixture' import { JwtProvider } from '../src/jwt/jwt.provider' import { RolesGuard } from '../src/config/auth/guards/role-auth.guard' import { when } from 'jest-when' diff --git a/server/test/item-update.e2e-spec.ts b/server/test/item-update.e2e-spec.ts index 93f3e3a..799ce47 100644 --- a/server/test/item-update.e2e-spec.ts +++ b/server/test/item-update.e2e-spec.ts @@ -10,7 +10,7 @@ import * as request from 'supertest' import { ItemCreater } from '../src/items/application/item.creater' import { ItemReader } from '../src/items/application/item.reader' import { ItemUpdater } from '../src/items/application/item.updater' -import { itemMock } from '../src/fixture/itemFixture' +import { itemMock } from '../fixture/itemFixture' import { ItemUpdateController } from '../src/items/web/item-update.controller' import { ItemDetailController } from '../src/items/web/item-detail.controller' import { ItemCreateController } from '../src/items/web/item-create.controller' @@ -22,8 +22,8 @@ import { MemberRepository } from '../src/members/domain/member.repository' import { JwtAuthGuard } from '../src/config/auth/guards/jwt-auth.guard' import { JwtProvider } from '../src/jwt/jwt.provider' import { RolesGuard } from '../src/config/auth/guards/role-auth.guard' -import { jwtTokenFixture } from '../src/fixture/jwtTokenFixture' -import { userMock } from '../src/fixture/memberFixture' +import { jwtTokenFixture } from '../fixture/jwtTokenFixture' +import { userMock } from '../fixture/memberFixture' import { when } from 'jest-when' import { ItemNotFoundException } from '../src/items/error/item-not-found.exception' import { ItemUpdatedFailException } from '../src/items/error/item-updated-fail.exception' diff --git a/server/test/signin.e2e-spec.ts b/server/test/signin.e2e-spec.ts index c13a11c..9534f7e 100644 --- a/server/test/signin.e2e-spec.ts +++ b/server/test/signin.e2e-spec.ts @@ -10,8 +10,8 @@ import { SigninController } from '../src/auth/signin/web/signin.controller' import { SigninService } from '../src/auth/signin/application/signin.service' import { TokenIssuer } from '../src/auth/token/application/token.issuer' import { MemberNotFoundException } from '../src/members/application/error/member-not-found.exception' -import { jwtTokenFixture } from '../src/fixture/jwtTokenFixture' -import { userMock } from '../src/fixture/memberFixture' +import { jwtTokenFixture } from '../fixture/jwtTokenFixture' +import { userMock } from '../fixture/memberFixture' import { LoginMemberDto } from '../src/members/dto/login-member.dto' import { SigninResponseDto } from '../src/auth/signin/dto/signin-response.dto' diff --git a/server/test/signout.e2e-spec.ts b/server/test/signout.e2e-spec.ts index bb6e1a4..1dfcc7b 100644 --- a/server/test/signout.e2e-spec.ts +++ b/server/test/signout.e2e-spec.ts @@ -11,7 +11,7 @@ import { TokenIssuer } from '../src/auth/token/application/token.issuer' import { TokenExpiredException } from '../src/auth/token/error/token_expired.exception' import { NotAccessTokenTypeException } from '../src/auth/token/error/not-access-token-type.exception' import { MemberNotFoundException } from '../src/members/application/error/member-not-found.exception' -import { jwtTokenFixture } from '../src/fixture/jwtTokenFixture' +import { jwtTokenFixture } from '../fixture/jwtTokenFixture' describe('SignoutController (e2e)', () => { let app: INestApplication diff --git a/server/test/signup.e2e-spec.ts b/server/test/signup.e2e-spec.ts index b713085..6532dc7 100644 --- a/server/test/signup.e2e-spec.ts +++ b/server/test/signup.e2e-spec.ts @@ -7,7 +7,7 @@ import { EmailChecker } from '../src/members/application/email.checker' import { MemberRepository } from '../src/members/domain/member.repository' import { MYSQL_CONNECTION } from '../src/database/constants' import { Connection } from 'mysql2/promise' -import { userMock } from '../src/fixture/memberFixture' +import { userMock } from '../fixture/memberFixture' import { PasswordProvider } from '../src/members/application/password.provider' import { JwtProvider } from '../src/jwt/jwt.provider' import { CreateMemberDto } from '../src/members/dto/create-member.dto' diff --git a/server/test/token.e2e-spec.ts b/server/test/token.e2e-spec.ts index 3530fa6..15b743b 100644 --- a/server/test/token.e2e-spec.ts +++ b/server/test/token.e2e-spec.ts @@ -7,7 +7,7 @@ import { Connection } from 'mysql2/promise' import { JwtProvider } from '../src/jwt/jwt.provider' import { TokenController } from '../src/auth/token/web/token.controller' import { TokenIssuer } from '../src/auth/token/application/token.issuer' -import { jwtTokenFixture } from '../src/fixture/jwtTokenFixture' +import { jwtTokenFixture } from '../fixture/jwtTokenFixture' import { MemberNotFoundException } from '../src/members/application/error/member-not-found.exception' import { TokenExpiredException } from '../src/auth/token/error/token_expired.exception'