Skip to content

thedvlprs/jest-testing

Repository files navigation

JavaScript Unit Testing using Jest

License: MIT GitHub contributors Open Source Love png1 saythanks

Tools:

devDependencies:

  • jest

Commands:

npm init -y

npm i -D jest

npm test


// functions.js > to check test x PASS

const functions = {
  add: (num1, num2) => num1 + num2
};

module.exports = functions;

// functions.js > to check test x FAIL

const functions = {
  add: (num1, num2) => num1 + num2 + 1
};

module.exports = functions;

About

JavaScript unit testing using Jest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published