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.
Note : Make sure you have installed node version 14+
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 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
!
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.
As you can see it consist of several jest core packages. You can read more about the use of these packages here.