We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d5369a commit 479238aCopy full SHA for 479238a
packages/editor/test/ColorPicker.js renamed to packages/editor/test/ColorPicker.tsx
@@ -9,15 +9,16 @@ const { act } = renderer
9
10
afterEach(cleanup)
11
12
-if (global.document) {
13
- document.createRange = () => ({
14
- setStart: () => {},
15
- setEnd: () => {},
16
- commonAncestorContainer: {
17
- nodeName: 'BODY',
18
- ownerDocument: document,
19
- },
20
- })
+if ((global as any).document) {
+ document.createRange = () =>
+ (({
+ setStart: () => {},
+ setEnd: () => {},
+ commonAncestorContainer: {
+ nodeName: 'BODY',
+ ownerDocument: document,
+ },
21
+ } as unknown) as Range)
22
}
23
24
test('renders with styles', () => {
0 commit comments