Skip to content

Commit

Permalink
refactor: updated ProviderWrapper location
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisheksharmayt committed Nov 6, 2024
1 parent cccf67c commit 3cf1a3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions __tests__/AuthScreen-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Provider } from 'react-redux';
import { configureStore } from '@reduxjs/toolkit';
import { Linking } from 'react-native';
import AuthApis from '../src/constants/apiConstant/AuthApi';
import ProviderWrapper from './ProviderWrapper';
import ProviderWrapper from '../src/utils/tests/ProviderWrapper';

jest.mock('react-redux', () => {
return {
Expand All @@ -25,7 +25,7 @@ it('AuthScreen is rendered', () => {
render(
<ProviderWrapper>
<AuthScreen />
</ProviderWrapper>
</ProviderWrapper>,
);
screen.getByText(/welcome to/i);
screen.getByText(/real dev squad/i);
Expand All @@ -49,7 +49,7 @@ it('Clicking on Sign in with Github opens browser', async () => {
render(
<ProviderWrapper>
<AuthScreen />
</ProviderWrapper>
</ProviderWrapper>,
);

const githubSignInBtn = screen.getByText(Strings.SIGN_IN_BUTTON_TEXT);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactNode } from 'react';
import { Provider as StoreProvider } from 'react-redux';
import { AuthProvider } from '../src/context/AuthContext';
import { store } from '../App';
import { AuthProvider } from '../../context/AuthContext';
import { store } from '../../../App';

interface ProviderWrapperProps {
children: ReactNode;
Expand Down

0 comments on commit 3cf1a3b

Please sign in to comment.