- Fork this repository
- Setup the project using npm :
npm install
to retrieve jest and dependenciesnpm 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.
- Implement a Javascript function that returns the sum of two numbers
- Add a unit test to cover this implementation (use the Jest framework)
- Add a validation step to make sure that both arguments are valid numbers
- Add a unit test to cover this validation step - make sure that the function code is 100% covered
- Setup a continuous integration environment that will run your tests after each commit (optional)
- Use TDD to implement a Javascript function that multiplies two numbers
- Implement the following tasks using a TDD approach
- Fizz Buzz : http://codingdojo.org/kata/FizzBuzz/
- Roman Numerals : http://codingdojo.org/kata/RomanNumerals/
- Jest Framework : https://jestjs.io/
- General intro to TDD : https://openclassrooms.com/fr/courses/5641591-testez-votre-application-c/5656581-decouvrez-les-principes-du-test-driven-development-tdd
- TDD tutorial (JS) : https://putaindecode.io/articles/se-lancer-dans-le-tdd/
- TDD tutorial (Java) : https://www.crafties.fr/videos/2016-03-20-episode-1-introduction-au-tdd.html