29 lines
546 B
JavaScript
Raw Normal View History

'use strict';
2019-04-23 15:18:57 +02:00
/**
*
* Strapi
* This file allow to mock any key that is in the global strapi variable
*
*/
// FIXME create a better jest setup
require('@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
};
global.prompt = jest.fn();
2021-10-18 14:47:12 +02:00
2022-08-08 23:33:39 +02:00
global.URL.createObjectURL = (file) => `http://localhost:4000/assets/${file.name}`;