LitListenerSDK
  • Overview
  • Quick Start
  • SDK Reference
    • Instantiate Circuit
    • Set Conditions
    • Conditional Logic
    • Set Actions
    • Execution Constraints
    • IPFS Hash
    • MintGrantBurn PKP
    • Start Circuit
    • Broadcast Transactions
    • Add Secure Key
  • Database and Server Interactions
    • Server-SDK Integration
    • Persistant Circuit Architecture
  • Errors and Logs
    • Logs & Error Handling
    • Error Strict Mode
  • Live
    • No Code Interface
  • Resources
    • Issues
    • Testing
    • Contributors
    • System Architecture
    • About the Devs
    • Storefront
  • Github
  • Lit Developer Docs
Powered by GitBook
On this page
  1. Resources

Testing

Running the Test Suite.

PreviousIssuesNextContributors

Last updated 1 year ago

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 .

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

PRIVATE_KEY=

Run the following in your command line:

npm run test
here
api.weather.gov