mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-10-28 15:27:17 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			317 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			317 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import React from "react";
 | |
| 
 | |
| const gatsby = jest.requireActual("gatsby");
 | |
| 
 | |
| export default {
 | |
|   ...gatsby,
 | |
|   graphql: jest.fn(),
 | |
|   Link: jest.fn().mockImplementation(({ to, ...rest }) =>
 | |
|     React.createElement("a", {
 | |
|       ...rest,
 | |
|       href: to,
 | |
|     }),
 | |
|   ),
 | |
|   StaticQuery: jest.fn(),
 | |
|   useStaticQuery: jest.fn(),
 | |
| };
 |