# js_testing

> A javascript testing framework

Latest version **1.0.1** (published 2021-12-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install js_testing
pnpm add js_testing
yarn add js_testing
bun add js_testing
```

Provides the command `js_testing`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-12-13 |
| First published | 2021-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | verma01 |

## Links

- npm: https://www.npmjs.com/package/js_testing
- npm.io page: https://npm.io/package/js_testing

## Dependencies (7)

- [chalk](https://npm.io/package/chalk.md) ^4.1.1
- [expect](https://npm.io/package/expect.md) ^27.0.2
- [jest-mock](https://npm.io/package/jest-mock.md) ^27.0.3
- [jest-circus](https://npm.io/package/jest-circus.md) ^27.0.3
- [jest-worker](https://npm.io/package/jest-worker.md) ^27.0.2
- [jest-haste-map](https://npm.io/package/jest-haste-map.md) ^27.0.2
- [jest-environment-node](https://npm.io/package/jest-environment-node.md) ^27.0.3

## Recent versions

- 1.0.1 (latest) — 2021-12-13
- 1.0.0 — 2021-12-13

## README

<p>
    <a href="https://www.npmjs.com/package/js_testing">
        <img src="https://img.shields.io/npm/v/js_testing?style=flat-square" alt="npm version" />
    </a>
    <img src="https://img.shields.io/npm/l/color-calendar?style=flat-square" alt="license" />
</p>

- [About](#about)
- [Usage](#usage)
- [How it works](#works)


<a id="about"></a>
# About
- `js_testing` is a JavaScript testing framework based on [jest](https://github.com/facebook/jest) architecture.
- It is build using some of `jest` packages.

<br/>I've decided to make this project to understand how `jest` internally works. 
<br/> Thanks to [Christoph Nakazawa](https://github.com/cpojer) for explaining the `jest` architecture as it helps me to make this project and to contribute in `jest` as well.

<a id="usage"></a>
# Usage
Note : Make sure you have installed node version 14+
#### Installation

```bash
yarn add js_testing
```
Or
```bash
npm i js_testing
```

Add the following section to your `package.json`:
```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`.
<br/>You can able to use all [Matchers](https://jestjs.io/docs/using-matchers) and even [Mock Functions](https://jestjs.io/docs/mock-functions) of `jest`!

![2021-12-08-00-13-26 (2)](https://user-images.githubusercontent.com/81867225/145091743-c0685be1-8417-451c-869e-c9b05df60c6c.gif)



# How it Works
<a id="works"></a>
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](https://user-images.githubusercontent.com/81867225/145719394-a958a086-d993-4e6f-a1ad-b180983d5c87.png)

As you can see it consist of several jest core packages. 
You can read more about the use of these packages [here](https://github.com/facebook/jest/tree/main/packages).

---
_Source: https://npm.io/package/js_testing · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
