# Pynt for Jest

## **What is Jest?**

{% hint style="info" %}
💡 [**Jest**](https://jestjs.io/) is a popular JavaScript testing framework designed for testing React and other JavaScript applications. It offers features like snapshot testing, mocking, and coverage reports to simplify and enhance your testing workflows.
{% endhint %}

<figure><img src="https://3462681674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZKwBF6q0tAGXlIih38HL%2Fuploads%2FZfZcsVScQI8psVHAyw43%2Fimage.png?alt=media&#x26;token=41aee50d-33e1-45a8-9cac-fad9b545c4e1" alt="" width="225"><figcaption><p>Jest</p></figcaption></figure>

***

## **Pynt's integration with Jest**

As part of its [API security testing](https://docs.pynt.io/documentation/api-security-testing) suite, **Pynt** integrates seamlessly with Jest, allowing automated security testing in JavaScript environments.

If your functional tests are based on java script framework like jest, you can use Pynt command to run API Security tests from these functional tests.

***

## Quick start

1. First, make sure Pynt's [prerequisites](https://docs.pynt.io/documentation/api-security-testing/prerequisites-for-running-pynt-scans) are met.
2. Follow the instructions to install Pynt container [here](https://docs.pynt.io/documentation/api-security-testing/how-to-install-pynt-cli).
3. Then, continue with the below example.

***

## Example

[jest.test.py](https://raw.githubusercontent.com/pynt-io/pynt/main/goat_functional_tests/jest.test.js) is a javascript-based tester for goat (our vulnerable application) that we use to test the functionality of goat, we run it with:&#x20;

```sh
npm test
```

Now, to run Pynt on it, we run:

```bash
pynt command --cmd "npm test"
```

<figure><img src="https://3462681674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZKwBF6q0tAGXlIih38HL%2Fuploads%2FQDxLYhoLEKCJM8TB4z1S%2Fimage.png?alt=media&#x26;token=c4cc1c21-9a51-44ef-8468-2d17850e7e59" alt=""><figcaption><p>Pynt for Jest example</p></figcaption></figure>

***

{% hint style="info" %}
💡 **Pynt CLI Troubleshooting**: If you're encountering issues with Pynt's CLI, visit the [**Pynt CLI Troubleshooting Guide**](https://docs.pynt.io/documentation/api-security-testing/pynt-scans-troubleshooting/pynt-cli-troubleshooting) for solutions and troubleshooting tips.
{% endhint %}

{% hint style="info" %}
💡 **Still Need Help?** For any questions or troubleshooting, reach out to the [**Pynt Community Support**](https://www.pynt.io/community).
{% endhint %}
