Skip to content

Commit b0ebd39

Browse files
committed
Amend paths to the AuthProvider file
1 parent 317c164 commit b0ebd39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cpt-ui/__tests__/SelectYourRolePage.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import "@testing-library/jest-dom";
33
import { render, screen, waitFor } from "@testing-library/react";
44
import SelectYourRolePage from "@/app/selectyourrole/page";
5-
import { AuthContext } from "@/context/AuthContext";
5+
import { AuthContext } from "@/context/AuthProvider";
66

77
// Mock `next/navigation` globally
88
jest.mock("next/navigation", () => ({

packages/cpt-ui/__tests__/page.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jest.mock("../context/configureAmplify", () => ({
2828
}));
2929

3030
// Mock the AuthContext with a valid value
31-
jest.mock("../context/AuthContext", () => {
31+
jest.mock("../context/AuthProvider", () => {
3232
const mockAuthContext = {
3333
signInWithRedirect: jest.fn(),
3434
signOut: jest.fn(),

0 commit comments

Comments
 (0)