fixing some tests

This commit is contained in:
Bassel 2022-12-02 13:20:23 +02:00
parent 3ec0b91013
commit d02f411c96

View File

@ -6,6 +6,13 @@ afterEach(() => {
jest.clearAllMocks(); jest.clearAllMocks();
}); });
jest.mock('../restore', () => {
return {
__esModule: true,
...jest.requireActual('../restore'),
};
});
describe('Local Strapi Source Destination', () => { describe('Local Strapi Source Destination', () => {
describe('Bootstrap', () => { describe('Bootstrap', () => {
test('Should not have a defined Strapi instance if bootstrap has not been called', () => { test('Should not have a defined Strapi instance if bootstrap has not been called', () => {