We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@testing-library/dom
https://github.com/gkiely/vite-project/blob/main/src/App.test.tsx
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
Makes it difficult to debug issues
The text was updated successfully, but these errors were encountered:
For reference, using:
render( <form role="form"> <div>test</div> <input type="text" /> <button type="submit">submit</button> </form> );
Input:
const form = screen.getByRole('form'); screen.debug(Array.from(form.children));
Output:
<div> test </div> <input type="text" /> <button type="submit" > submit </button>
const form = screen.getByRole('form'); screen.debug(form);
bound HTMLFormElement { "0": <input type="text" />, "1": <button type="submit" > submit </button>, }
Sorry, something went wrong.
No branches or pull requests
@testing-library/dom
version: 6.6.3Relevant code or config:
https://github.com/gkiely/vite-project/blob/main/src/App.test.tsx
Reproduction:
Problem description:
Makes it difficult to debug issues
The text was updated successfully, but these errors were encountered: