# Testing

<figure><img src="/files/OV3XWKut9A9MEAP4n0cz" alt=""><figcaption></figcaption></figure>

A comprehensive Test Suite for the SDK is located in the `test` folder in the root of the project. Before running the tests, you will need to compile the project and set up your environment variables.

{% hint style="info" %}
You will need LIT Testnet Tokens to run the Test Suite. You can get LIT Testnet Tokens from the official faucet [here](https://faucet.litprotocol.com/).
{% endhint %}

{% hint style="info" %}
Note that some tests use the [api.weather.gov](https://api.weather.gov/gridpoints/LWX/97,71/forecast) as the endpoint for Webhook Conditions. The data returned by this API can change frequently, if you encounter test failures related to these specific tests, you may need to update the expected values with the latest data from the endpoint to ensure accurate comparisons.
{% endhint %}

Place a valid `PRIVATE_KEY` in your `.env` file to create the signer object for minting PKPs on Chronicle.&#x20;

```sh
PRIVATE_KEY=
```

Run the following in your command line:

```bash
npm run test
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.irrevocable.dev/resources/testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
