static-cms/setupTestFramework.js

9 lines
287 B
JavaScript
Raw Normal View History

2019-03-15 10:19:57 -04:00
/* 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';
2018-07-25 19:17:34 -04:00
window.fetch = fetch;
expect.addSnapshotSerializer(createSerializer(emotion));