mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 01:47:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			462 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			462 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  *
 | |
|  * Strapi
 | |
|  * This file allow to mock any key that is in the global strapi variable
 | |
|  *
 | |
|  */
 | |
| 
 | |
| // Setup the strapi function global variable
 | |
| 
 | |
| // FIXME create a better jest setup
 | |
| import '@testing-library/jest-dom/extend-expect';
 | |
| 
 | |
| global.process.env.ADMIN_PATH = '/admin/';
 | |
| 
 | |
| global.strapi = {
 | |
|   backendURL: 'http://localhost:1337',
 | |
|   isEE: false,
 | |
|   features: {
 | |
|     SSO: 'sso',
 | |
|     allFeatures: [],
 | |
|     isEnabled: () => false,
 | |
|   },
 | |
|   projectType: 'Community',
 | |
| };
 | 
