/tdd-node

Javascript project implementing unit and integration tests using Jest.

Primary LanguageJavaScript

Basic JEST tests (unit and integration)

This project implements the TDD concepts, using the Jest library for unit and integration tests.

Demo screen

Environment requirements

  • NodeJS with the NPM package manager installed.
  • Install the Yarn if you prefer to use it.

Main NPM packages

Module Purpose
Express Create a web server to serve statically the test page
Jest Build and execute tests
SQLite Store temporary tests data

Running tests

  • Clone the project: git clone https://github.com/felipeleite11/tdd-node.git
  • Execute instalation of dependencies: npm install ou yarn
  • Execute npm test or yarn test
  • Open tests/coverage/Icov-report/index.html to view and browse test results in the browser

The expected is...

  • Two identical images, side by side, captured directly from your webcam
  • When speaking into your microphone, your voice should be echoed through your device’s speaker