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.
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.
If you'd like to run this project locally, clone the repo and then:
yarn install
(ornpm install
) to install dependenciesyarn start
(ornpm start
) to preview the app locallyyarn test
(ornpm test
) to run the tests