Skip to content

Add happy-dom option to unit-test runner when using Vitest #31653

@yjaaidi

Description

@yjaaidi

Command

test

Description

It would be nice to provide happy-dom as an environment option.

During the migration from karma, some might go with browser mode directly, some might transition through jsdom. When using jsdom, they might encounter issues that do not exist in happy-dom. (A typical example is event view verification, cf. vitest-dev/vitest#4685).
Also, some Jest users might be already using happy-dom so providing it as an option could make the migration smoother.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions