mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-11-04 10:40:09 +01:00 
			
		
		
		
	Upgrade to Gatsby v2
This commit is contained in:
		
							
								
								
									
										3
									
								
								tests/__mocks__/fileMock.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								tests/__mocks__/fileMock.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
module.exports = 'file';
 | 
			
		||||
							
								
								
									
										10
									
								
								tests/__mocks__/gatsby.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								tests/__mocks__/gatsby.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
const gatsby = jest.requireActual('gatsby');
 | 
			
		||||
 | 
			
		||||
module.exports = {
 | 
			
		||||
  ...gatsby,
 | 
			
		||||
  graphql: jest.fn(),
 | 
			
		||||
  Link: 'Link',
 | 
			
		||||
  StaticQuery: 'StaticQuery'
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user