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 16f4792 commit 996180eCopy full SHA for 996180e
src/hooks/__tests__/Auth0Provider.spec.tsx
@@ -8,7 +8,7 @@ import {
8
} from '@testing-library/react';
9
import '@testing-library/jest-dom';
10
import { Auth0Provider, useAuth0 } from '..';
11
-import Auth0 from '../../index';
+import Auth0 from '../../Auth0';
12
13
// Mock TurboModuleRegistry first
14
jest.mock('react-native/Libraries/TurboModule/TurboModuleRegistry', () => ({
@@ -63,7 +63,7 @@ jest.mock('react-native', () => ({
63
}));
64
65
// 1. Mock the top-level Auth0 facade
66
-jest.mock('../../index');
+jest.mock('../../Auth0');
67
const MockAuth0 = Auth0 as jest.MockedClass<typeof Auth0>;
68
69
// Mock the Auth0User model's factory method
0 commit comments