You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			657 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			20 lines
		
	
	
		
			657 B
		
	
	
	
		
			TypeScript
		
	
| /* eslint-disable import/no-extraneous-dependencies */
 | |
| import { render, RenderOptions } from '@testing-library/react';
 | |
| import { AnimatePresence } from 'framer-motion';
 | |
| import { ReactElement, ReactNode } from 'react';
 | |
| import { SessionTheme } from '../../themes/SessionTheme';
 | |
| 
 | |
| const Providers = ({ children }: { children: ReactNode }) => {
 | |
|   return (
 | |
|     <SessionTheme>
 | |
|       <AnimatePresence>{children}</AnimatePresence>
 | |
|     </SessionTheme>
 | |
|   );
 | |
| };
 | |
| 
 | |
| const renderComponent = (ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>) =>
 | |
|   render(ui, { wrapper: Providers, ...options });
 | |
| 
 | |
| export * from '@testing-library/react';
 | |
| export { renderComponent };
 |