yarn add jsdom-polyfill
"jest": {
"testEnvironment": "jsdom",
"setupFiles": ["jsdom-polyfill"]
}
Because jsdom doesn't support contenteditable, it makes it impossible to test editors like Remirror/Tiptap.
The code for this library was mostly extracted from jest-remirror, removing the specific remirror apis.