File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed
Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -503,19 +503,22 @@ describe('routes/Settings.tsx', () => {
503503 ) ;
504504 } ) ;
505505
506- it ( 'should open account management' , ( ) => {
507- render (
508- < AppContext . Provider
509- value = { {
510- auth : mockAuth ,
511- settings : mockSettings ,
512- } }
513- >
514- < MemoryRouter >
515- < SettingsRoute />
516- </ MemoryRouter >
517- </ AppContext . Provider > ,
518- ) ;
506+ it ( 'should open account management' , async ( ) => {
507+ await act ( async ( ) => {
508+ render (
509+ < AppContext . Provider
510+ value = { {
511+ auth : mockAuth ,
512+ settings : mockSettings ,
513+ } }
514+ >
515+ < MemoryRouter >
516+ < SettingsRoute />
517+ </ MemoryRouter >
518+ </ AppContext . Provider > ,
519+ ) ;
520+ } ) ;
521+
519522 fireEvent . click ( screen . getByTitle ( 'Accounts' ) ) ;
520523 expect ( mockNavigate ) . toHaveBeenCalledWith ( '/accounts' ) ;
521524 } ) ;
You can’t perform that action at this time.
0 commit comments