Skip to content

prettyDom returns incorrect html for form with happy-dom #1344

Open
@gkiely

Description

@gkiely
  • @testing-library/dom version: 6.6.3
  • Testing Framework and version: vitest (or any other)
  • DOM Environment: happy-dom

Relevant code or config:

https://github.com/gkiely/vite-project/blob/main/src/App.test.tsx

Reproduction:

1. git clone https://github.com/gkiely/vite-project
2. npm i
3. Update package.json: "test": "vitest --environment happy-dom"
4. npm test # incorrect output for happy-dom

Problem description:

Makes it difficult to debug issues

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