ab685e8594
* fix: change getAsset to not return a promise * fix: update markdown widget per getAsset changes * test: fix editor component image test * docs: update getAsset docs
10 lines
327 B
JavaScript
10 lines
327 B
JavaScript
/* eslint-disable emotion/no-vanilla */
|
|
import '@testing-library/jest-dom/extend-expect';
|
|
import fetch from 'node-fetch';
|
|
import * as emotion from 'emotion';
|
|
import { createSerializer } from 'jest-emotion';
|
|
|
|
window.fetch = fetch;
|
|
window.URL.createObjectURL = jest.fn();
|
|
expect.addSnapshotSerializer(createSerializer(emotion));
|