Testing Basics - OCLC-Developer-Network/devconnect2018-idm GitHub Wiki

Unit testing code

  1. Make sure you are in the base project directory
  2. Run the unit tests
$ npm test

Testing our application by hand via a web browser

  1. Make sure you are in the base project directory
  2. Start the built-in Node.js web server
$ npm start
  1. Go to web browser to view application at http://localhost:8000