0.1.0 • Published 3 years ago
jsdom-polyfill v0.1.0
jsdom-polyfill
Getting Started
yarn add jsdom-polyfill
"jest": {
"testEnvironment": "jsdom",
"setupFiles": ["jsdom-polyfill"]
}
Why
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.
0.1.0
3 years ago