2019-04-23 15:18:57 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Strapi
|
|
|
|
* This file allow to mock any key that is in the global strapi variable
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-05-03 08:42:27 +02:00
|
|
|
// Setup the strapi function global variable
|
2019-04-23 15:18:57 +02:00
|
|
|
|
2021-07-01 15:50:11 +02:00
|
|
|
// FIXME create a better jest setup
|
2021-01-29 13:36:54 +01:00
|
|
|
import '@testing-library/jest-dom/extend-expect';
|
|
|
|
|
2021-05-06 09:14:31 +02:00
|
|
|
global.process.env.ADMIN_PATH = '/admin/';
|
|
|
|
|
2019-04-23 15:18:57 +02:00
|
|
|
global.strapi = {
|
2020-03-24 07:35:16 +01:00
|
|
|
backendURL: 'http://localhost:1337',
|
2021-07-01 15:50:11 +02:00
|
|
|
isEE: false,
|
|
|
|
features: [],
|
|
|
|
projectType: 'Community',
|
2019-04-23 15:18:57 +02:00
|
|
|
};
|