Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Update path
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmaxime committed Sep 21, 2023
1 parent e3eac00 commit c289ec3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions __tests__/unit/Error.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/Home.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down
7 changes: 4 additions & 3 deletions jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@/middleware/*": ["./src/middleware/*"],
"@/styles/*": ["./src/styles/*"],
"@/redux/*": ["./src/redux/*"],
"@/tools/*": ["./tools/*"],
"@/tools-test/*": ["./tools/test/*"],
"@/hooks/*": ["./src/hooks/*"]
}
},
Expand Down

0 comments on commit c289ec3

Please sign in to comment.