mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-11-04 02:29:46 +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(),
 | 
						|
};
 |