diff --git a/__tests__/unit/Error.test.tsx b/__tests__/unit/Error.test.tsx index e693acb..e390353 100644 --- a/__tests__/unit/Error.test.tsx +++ b/__tests__/unit/Error.test.tsx @@ -3,8 +3,8 @@ */ import Error from "@/app/error"; -import { render, screen } from "@/tools/test/render"; -import { error } from "@/tools/test/mocks/error.mock"; +import { render, screen } from "@/tools-test/render"; +import { error } from "@/tools-test/mocks/error.mock"; describe("Error Component", () => { const mockReset = jest.fn(); diff --git a/__tests__/unit/Home.test.tsx b/__tests__/unit/Home.test.tsx index c3e461c..77749c9 100644 --- a/__tests__/unit/Home.test.tsx +++ b/__tests__/unit/Home.test.tsx @@ -3,7 +3,7 @@ */ import Home from "@/app/[locale]/page"; -import { render, screen } from "@/tools/test/render"; +import { render, screen } from "@/tools-test/render"; describe("Home", () => { it("renders a heading", () => { diff --git a/jest.setup.js b/jest.setup.js index 1333b36..545d7cd 100644 --- a/jest.setup.js +++ b/jest.setup.js @@ -2,9 +2,10 @@ import "@testing-library/jest-dom"; import { ArrayBuffer, TextDecoder, TextEncoder, Uint8Array } from "util"; -import { server } from "./tools/test/mocks/server"; -import { mockUseUserId, mockUseUserIdData } from "./tools/test/mocks/userId.mock"; -import { mockUseWalletInfo, mockUseWalletInfoData } from "./tools/test/mocks/walletInfo.mock"; + +import { server } from "@/tools-test/mocks/server"; +import { mockUseUserId, mockUseUserIdData } from "@/tools-test/mocks/userId.mock"; +import { mockUseWalletInfo, mockUseWalletInfoData } from "@/tools-test/mocks/walletInfo.mock"; global.TextEncoder = TextEncoder; global.TextDecoder = TextDecoder; diff --git a/tsconfig.json b/tsconfig.json index 48699ce..7bc5777 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,7 +25,7 @@ "@/middleware/*": ["./src/middleware/*"], "@/styles/*": ["./src/styles/*"], "@/redux/*": ["./src/redux/*"], - "@/tools/*": ["./tools/*"], + "@/tools-test/*": ["./tools/test/*"], "@/hooks/*": ["./src/hooks/*"] } },