- `@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: ```sh 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