You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the a concise description and fill out the details below. It will help others efficiently understand your request and get to an answer instead of repeated back and forth. Providing a minimal, complete and verifiable example will further increase your chances that someone can help.
Steps for Reproduction
I am trying to test my Quill editor with jest
import Quill from "quill"
import "quill-mention/autoregister"
This throws Cannot find module 'quill-mention/autoregister' from 'src/components/QuillEditor/QuillEditor.tsx'
Please describe the a concise description and fill out the details below. It will help others efficiently understand your request and get to an answer instead of repeated back and forth. Providing a minimal, complete and verifiable example will further increase your chances that someone can help.
Steps for Reproduction
I am trying to test my Quill editor with jest
This throws
Cannot find module 'quill-mention/autoregister' from 'src/components/QuillEditor/QuillEditor.tsx'
so in
jest.config.ts
I addedbut now this gives:
ReferenceError: Quill is not defined
which I don't understand because I already mocked it?I have also tried other ways by doing:
import { Mention } from "quill-mention"
and then trying to register it but this didn't get me any closerExpected behavior:
Actual behavior:
Version:
versions being used:
The text was updated successfully, but these errors were encountered: