add-cms
This commit is contained in:
13
source/admin/setupTestFramework.js
Normal file
13
source/admin/setupTestFramework.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/* eslint-disable @emotion/no-vanilla */
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
import fetch from 'node-fetch';
|
||||
|
||||
jest.mock('path', () => {
|
||||
const actual = jest.requireActual('path');
|
||||
return {
|
||||
...actual.posix,
|
||||
};
|
||||
});
|
||||
|
||||
window.fetch = fetch;
|
||||
window.URL.createObjectURL = jest.fn();
|
||||
Reference in New Issue
Block a user