File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
hooks/useDefaultOrganizationId
pages/TeacherDashboardCourseLearnersLayout/hooks/useCourseLearnersFilters Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import fetchMock from 'fetch-mock';
33import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie' ;
44import { OrganizationFactory } from 'utils/test/factories/joanieLegacy' ;
55import { Organization } from 'types/Joanie' ;
6- import { JoanieAppWrapper , setupJoanieSession } from 'utils/test/wrappers/JoanieAppWrapper' ;
6+ import JoanieAppWrapper , { setupJoanieSession } from 'utils/test/wrappers/JoanieAppWrapper' ;
77import useDefaultOrganizationId from '.' ;
88
99jest . mock ( 'utils/context' , ( ) => ( {
Original file line number Diff line number Diff line change 66 CourseProductRelationFactory ,
77 OrganizationFactory ,
88} from 'utils/test/factories/joanieLegacy' ;
9- import { JoanieAppWrapper , setupJoanieSession } from 'utils/test/wrappers/JoanieAppWrapper' ;
9+ import JoanieAppWrapper , { setupJoanieSession } from 'utils/test/wrappers/JoanieAppWrapper' ;
1010import useCourseLearnersFilters from '.' ;
1111
1212jest . mock ( 'utils/context' , ( ) => ( {
Original file line number Diff line number Diff line change 11import { RenderResult , screen , render as testingLibraryRender } from '@testing-library/react' ;
2- import React , { ReactElement } from 'react' ;
2+ import React , { ReactElement , lazy } from 'react' ;
33import { Nullable } from 'types/utils' ;
44import { AppWrapperProps } from './wrappers/types' ;
5- import { JoanieAppWrapper } from './wrappers/JoanieAppWrapper' ;
5+
6+ const JoanieAppWrapper = lazy ( ( ) => import ( './wrappers/JoanieAppWrapper' ) ) ;
67
78// ------- setup -------
89
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const setupJoanieSession = () => {
1919 } ;
2020} ;
2121
22- export const JoanieAppWrapper = ( {
22+ const JoanieAppWrapper = ( {
2323 children,
2424 intlOptions,
2525 queryOptions,
@@ -35,3 +35,5 @@ export const JoanieAppWrapper = ({
3535 </ BaseJoanieAppWrapper >
3636 ) ;
3737} ;
38+
39+ export default JoanieAppWrapper ;
You can’t perform that action at this time.
0 commit comments