strapi/test/config/front/strapi.js

25 lines
462 B
JavaScript
Raw Normal View History

2019-04-23 15:18:57 +02:00
/**
*
* Strapi
* This file allow to mock any key that is in the global strapi variable
*
*/
// Setup the strapi function global variable
2019-04-23 15:18:57 +02:00
// FIXME create a better jest setup
import '@testing-library/jest-dom/extend-expect';
global.process.env.ADMIN_PATH = '/admin/';
2019-04-23 15:18:57 +02:00
global.strapi = {
backendURL: 'http://localhost:1337',
isEE: false,
features: {
SSO: 'sso',
allFeatures: [],
isEnabled: () => false,
},
projectType: 'Community',
2019-04-23 15:18:57 +02:00
};