We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 487a1c4 commit 2ac5df3Copy full SHA for 2ac5df3
test-data/test-helpers-back-link.tsx
@@ -1,16 +1,5 @@
1
-import { screen } from "@testing-library/react";
2
import { Screen } from "@testing-library/dom/types/screen";
3
4
-export const initialiseBackLinkMocks = () => {
5
- jest.mock("next/navigation", () => ({
6
- useRouter: jest.fn(),
7
- }));
8
-
9
- jest.mock("@src/app/_components/nhs-frontend/BackLink", () =>
10
- jest.fn(() => <div data-testid="back-link"></div>),
11
- );
12
-};
13
14
export const assertBackLinkIsPresent = (screen: Screen) => {
15
const backLink = screen.getByTestId("back-link");
16
expect(backLink).toBeInTheDocument();
0 commit comments