Running the Test Suite.

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.

You will need LIT Testnet Tokens to run the Test Suite. You can get LIT Testnet Tokens from the official faucet here.

Note that some tests use the api.weather.gov 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.

Place a valid PRIVATE_KEY in your .env file to create the signer object for minting PKPs on Chronicle.


Run the following in your command line:

npm run test

Last updated