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-app
andcd
into it - Set up your git repo correctly with the proper npm entries in
.gitignore
- Create a new project with
npm init
- Install the
jest
project into your node development dependencies - In your
package.json
file, create a script that runsjest
for thescript
command - 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
multiplyStuff
function 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!