Skip to content

Vitest Can't Unit Test Froala Vue Editor: Component isn't resolved #244

@Yodablues

Description

@Yodablues

Have a strange one, I've tested on multiple projects, here is a repo with code:

https://github.com/Yodablues/test-froala

Basically since Froala is registered globally, there is no way to properly test any components the depend on froala. When attempting to mount the components, Vitest is unable to resolve the custom component. I've tried registering the component as a plugin as per the docs, but this didn't work.

Image

How can I configure my project so that the globally registered VueFroala component can be resolved?

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