Skip to content

dipendrashekhawat/GettingStartedWithJest

Repository files navigation

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

About

Getting started with JavaScript Testing Framework - Jest.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published