1.0.1 • Published 2 years ago

js_testing v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

About

  • js_testing is a JavaScript testing framework based on jest architecture.
  • It is build using some of jest packages.

I've decided to make this project to understand how jest internally works. Thanks to Christoph Nakazawa for explaining the jest architecture as it helps me to make this project and to contribute in jest as well.

Usage

Note : Make sure you have installed node version 14+

Installation

yarn add js_testing

Or

npm i js_testing

Add the following section to your package.json:

{
  "scripts": {
    "test": "js_testing"
  }
}

And all set ! now you can write basic unit tests and to run those test - run yarn test or if you are using npm then npm test. You can able to use all Matchers and even Mock Functions of jest!

2021-12-08-00-13-26 (2)

How it Works

In the below diagram i try to explaining how this packages works.Obviously it doesn't contains all things it gives you a very basic idea that how all this works. arch1

As you can see it consist of several jest core packages. You can read more about the use of these packages here.