Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Jest unit test fails for useEditor() #5108

Open
1 of 2 tasks
ClaudiuGS opened this issue May 1, 2024 · 0 comments
Open
1 of 2 tasks

[Bug]: Jest unit test fails for useEditor() #5108

ClaudiuGS opened this issue May 1, 2024 · 0 comments
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@ClaudiuGS
Copy link

Which packages did you experience the bug in?

"@tiptap/core": "^2.3.0",     "@tiptap/extension-bold": "^2.3.0,  "react": "^18.2.0",",     "@tiptap/extension-document": "^2.3.0",     "@tiptap/extension-hard-break": "^2.3.0",     "@tiptap/extension-history": "^2.3.0",     "@tiptap/extension-paragraph": "^2.3.0",     "@tiptap/extension-strike": "^2.3.0",     "@tiptap/extension-text": "^2.3.0",     "@tiptap/pm": "^2.3.0",     "@tiptap/react": "^2.3.0",

What Tiptap version are you using?

2.3.0

What’s the bug you are facing?

I've upgraded TipTap from 2.1.13 to 2.3.0 and now my unit tests are failing. After inspection, it seems that useEditor always returns null.

I've tried commenting out all my custom code and using a very basic example of Editor but useEditor still returns null.

What browser are you using?

Chrome

Code example

No response

What did you expect to happen?

Expected my unit tests not to fail as in previous version.

Anything to add? (optional)

No response

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@ClaudiuGS ClaudiuGS added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
Status: Triage open
Development

No branches or pull requests

1 participant