Skip to content

Experiment for testing HTML and vanilla JS with Jest and @testing-library/dom

Notifications You must be signed in to change notification settings

thawkin3/dom-testing-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Experiment for testing HTML and vanilla JS with Jest and @testing-library/dom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published