6515dee871
* feat: commit media with post - initial commit * feat: add draft media indication * feat: sync UI media files with GitHub on entry load * feat: bug fixes * feat: delete media files from github when removed from library * test: add GitHub backend tests * test: add unit tests * fix: meta data object files are not updated * feat: used nested paths when update a tree instead of recursion * feat(test-backend): update test backend to persist media file with entry * test(e2e): re-record fixtures data * chore: code cleanup * chore: code cleanup * fix: wait for library to load before adding entry media files * chore: code cleanup * fix: don't add media files on entry when not a draft * fix: sync media library after draft entry was published * feat: update media library card draft style, add tests * test: add Editor unit tests * chore: test code cleanup * fix: publishing an entry from workflow tab throws an error * fix: duplicate media files when using test backend * refactor: fix lodash import * chore: update translations and yarn file after rebase * test(cypress): update recorded data * fix(test-backend): fix mapping of media files on publish
9 lines
287 B
JavaScript
9 lines
287 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;
|
|
expect.addSnapshotSerializer(createSerializer(emotion));
|