Unable to test wrapped editor #639
Replies: 9 comments
-
|
Can you try if using |
Beta Was this translation helpful? Give feedback.
-
|
That unfortunately results in the same output, |
Beta Was this translation helpful? Give feedback.
-
|
I've created a codesandbox with all the "working" code here: https://codesandbox.io/s/elegant-bohr-s9il4 |
Beta Was this translation helpful? Give feedback.
-
|
With the latest release (1.27.0) it actually got worse. Now when you mount the Component that uses tiptap, you will get the following error: |
Beta Was this translation helpful? Give feedback.
-
|
Did you figure this out in the end? |
Beta Was this translation helpful? Give feedback.
-
|
Same here |
Beta Was this translation helpful? Give feedback.
-
|
Same here |
Beta Was this translation helpful? Give feedback.
-
|
I am experiencing the same issue. Has anyone found a solution? |
Beta Was this translation helpful? Give feedback.
-
|
Try calling |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I've created a component that wraps tiptap. I wanted to test the component and I can't seem to get any output from tiptap in the test using Jest.
I have the following test:
In my component I have the following code:
When I run this test, the first expect will yield good results, however, the second one does not. It will return
<p></p>instead, which I didn't expect. I would expect<p>test</p>. What can I do to get the correct output? Is there something I miss? I've also tried waiting for nextTick, but that doesn't seem to help either. Any ideas?Beta Was this translation helpful? Give feedback.
All reactions