feat(SW-360): Added test for register user form

This commit is contained in:
Tobias Johansson
2024-09-12 16:08:03 +02:00
committed by Chuma McPhoy
parent c22fa9fa8c
commit 661effeefa
6 changed files with 95 additions and 7 deletions

View File

@@ -1 +1,12 @@
import "@testing-library/jest-dom"
jest.mock("react-intl", () => ({
useIntl: () => ({
formatMessage: (message: { id: string }) => message.id,
}),
}))
jest.mock("next/navigation", () => ({
useRouter: jest.fn(),
usePathname: jest.fn().mockReturnValue("/"),
}))