Write a simple function that takes two numbers as arguments and multiplies them with 100% test coverage using TDD
- Create a new directory called
calculator-appandcdinto it - Set up your git repo correctly with the proper npm entries in
.gitignore - Create a new project with
npm init - Install the
jestproject into your node development dependencies - In your
package.jsonfile, create a script that runsjestfor thescriptcommand - In the root of your app, create a test file called
multiplyStuff.test.js - In your test file, import the not-yet-created file
multiplyStuff.js - In your test file, write a test that expects the
multiplyStufffunction to return the product of two arguments - Run your test with
npm run test(It should fail) - Create a file called
multiplyStuff.js - Write the code (remember
module.exports) to make the test pass!