mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +00:00 
			
		
		
		
	core(admin): add manual mock for useInjectionZone
This commit is contained in:
		
							parent
							
								
									814d042b40
								
							
						
					
					
						commit
						ced8d7b762
					
				| @ -24,6 +24,7 @@ jest.mock('@strapi/helper-plugin', () => ({ | |||||||
|   }), |   }), | ||||||
| })); | })); | ||||||
| 
 | 
 | ||||||
|  | jest.mock('../../../../../../shared/hooks/useInjectionZone'); | ||||||
| jest.mock('../SelectedEntriesModal', () => () => <div>SelectedEntriesModal</div>); | jest.mock('../SelectedEntriesModal', () => () => <div>SelectedEntriesModal</div>); | ||||||
| 
 | 
 | ||||||
| const user = userEvent.setup(); | const user = userEvent.setup(); | ||||||
|  | |||||||
| @ -0,0 +1,3 @@ | |||||||
|  | export function useInjectionZone() { | ||||||
|  |   return []; | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Gustav Hansen
						Gustav Hansen