Skip to content

An example of how you can run unit tests using Node.js even on your frontend files

Notifications You must be signed in to change notification settings

ErickWendel/tdd-frontend-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of Unit Testing on the Browser with JavaScript, Jest and ECMAScript Modules

  • This is an example of how you can run unit tests using Node.js even on your frontend files

Runing

  • Use npm ci to restore dependencies
  • Use npm start to run the app on thr browser
  • Use npm test to run the unit test suite
  • Use npm run test:cov to get code coverage insights
  • Use npm run test:watch to run all suites with code watcher enable

Preview

Code Coverage

App

Author

About

An example of how you can run unit tests using Node.js even on your frontend files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published