# Testing

<figure><img src="https://904340753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKxchJQ9hoNG85dYRcdgl%2Fuploads%2FqDLFUoQ4c6AASGflXDLS%2F00982-657275145.png?alt=media&#x26;token=e1964d44-3753-4fc9-bbd3-c4f92e314659" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The test suite was migrated to Forge upon migration to LensV3. Not all tests are included on Github yet. The following provides instructions for running the LensV2 test suite.
{% endhint %}

A comprehensive Test Suite for the SDK and Contract Suite 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.

### **Kinora Contract Suite and SDK Test**

{% hint style="warning" %}
comment out this part of the **KinoraOpenAction** contract before running the test suite or an error will throw. It is only a required check once deployed.

```solidity
!MODULE_GLOBALS.isErc20CurrencyRegistered(
       _params.milestones[i].rewards[j].tokenAddress
          )
  ) {
    revert KinoraErrors.CurrencyNotWhitelisted();
 }
```

{% endhint %}

{% hint style="info" %}
The SDK is being continuously updated to include additional features and configurations, if a contract test is not passing, it could be due to a discrepency in the test suite and the latest SDK version. Please let us know if you find anything!
{% endhint %}

To run the contract and node Sequence tests, place a valid `PRIVATE_KEY` in your root `.env` file to create the signer object for transacting within the hardhat local network.

```sh
PRIVATE_KEY=
```

Run the following in your command line:

```bash
npm run test
```
