Skip to content

🐛 [Bug]: Angular17+Jest 环境下,执行 jest 单元测试会报错:Quill.import is not a function #451

@kagol

Description

@kagol

Version

latest

Link to minimal reproduction

使用 Angular CLI 创建一个 Angular 17 项目,引入 TinyEditor 富文本编辑器,集成 Jest 单元测试框架,测试用例中初始化 TinyEditor 实例(new TinyEditor(xxx)),执行 jest 单元测试会报错。

Step to reproduce

如上

What is expected

No response

What is actually happening

No response

What is your project name

Wiki

Any additional comments (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions