2020-11-18 18:59:30 +02:00
|
|
|
/* eslint-disable @emotion/no-vanilla */
|
2019-11-17 11:51:50 +02:00
|
|
|
import '@testing-library/jest-dom/extend-expect';
|
2019-06-26 11:51:35 -04:00
|
|
|
import fetch from 'node-fetch';
|
2018-07-25 19:17:34 -04:00
|
|
|
|
2020-04-30 15:27:44 +03:00
|
|
|
jest.mock('path', () => {
|
|
|
|
const actual = jest.requireActual('path');
|
|
|
|
return {
|
|
|
|
...actual.posix,
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2019-06-26 11:51:35 -04:00
|
|
|
window.fetch = fetch;
|
2020-02-13 02:12:36 +02:00
|
|
|
window.URL.createObjectURL = jest.fn();
|