Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.47 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.47 KB

DOM Testing Demo

This is an experimental project for testing HTML and vanilla JS with Jest and @testing-library/dom. You can read my article on Medium about this project as well.

Motivation

I've used Jest and @testing-library/react alongside React extensively in professional and personal projects, but I've never tried writing unit tests to test a UI that was created without any UI frameworks or libraries.

Development

If you'd like to run this project locally, clone the repo and then:

  1. yarn install (or npm install) to install dependencies
  2. yarn start (or npm start) to preview the app locally
  3. yarn test (or npm test) to run the tests

Docs and Resources