Feat/SW-619 signup non happy * feat(SW-619): Added tests for Date input * feat(SW-619): Updated date input to not allow date below 18 years old, also added form validation and tests to cover this change * fix * feat(SW-619): add info banner if membership verification fails * fix(SW-619): update test description Approved-by: Christel Westerberg Approved-by: Arvid Norlin
14 lines
329 B
TypeScript
14 lines
329 B
TypeScript
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("/"),
|
|
useParams: jest.fn().mockReturnValue({ lang: "en" }),
|
|
}))
|