/GettingStartedWithJest

Getting started with JavaScript Testing Framework - Jest.

Primary LanguageJavaScript

GettingStartedWithJest

A basic demo on using JavaScript Testing Framework - Jest.

I have created a function (calculateSum) to add two numbers and using the JEST testing framework. I am asserting the value of the resultset. Based on the assertion the test cases are passed or failed.

Commands for setup

  • npm install --save -dev jest
  • npm run dstest
  • npm install --save-dev babel-plugin-transform-es2015-modules-commonjs
    • Passed Test

      Passed Test

      Passed and Failed Tests

      Passed and Failed Test