Skip to content

A template project for TDD practice using Jest framework

Notifications You must be signed in to change notification settings

mezzasalma/tdd-jest

 
 

Repository files navigation

Status

Build Status

Setup

  1. Fork this repository
  2. Setup the project using npm :
  • npm install to retrieve jest and dependencies
  • npm run test to run the tests

Code goes in src folder, unit tests go in test folder and should end with .test.js.

Test coverage will be generated by Jest as a HTML report in the coverage folder.

Instructions

  1. Implement a Javascript function that returns the sum of two numbers
  2. Add a unit test to cover this implementation (use the Jest framework)
  3. Add a validation step to make sure that both arguments are valid numbers
  4. Add a unit test to cover this validation step - make sure that the function code is 100% covered
  5. Setup a continuous integration environment that will run your tests after each commit (optional)
  6. Use TDD to implement a Javascript function that multiplies two numbers
  7. Implement the following tasks using a TDD approach

Resources

About

A template project for TDD practice using Jest framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%