Testing a Page with jsdom
jsdom is a browser without a screen that runs inside your tests, so Vitest can build a little page, click its buttons with dispatchEvent and check what the page says, in a moment and without opening a browser.
Updated

- Category
- JavaScript
- Level
- Freelancer
- Tags
- DOM, Event (javascript), JavaScript, jsdom, Setup and Teardown, textContent, unit testing