Test
Requirements
- light cli version 0.24.0+ (install via npm
i -g @lightprotocol/zk-compression-cli) - solana cli version 2.1.16+
- anchor version 0.31.1+
- Node.js and npm
Running Tests
Rust Tests
TypeScript Tests
-
Build the program and sync the program ID:
-
Start the test validator
Anchor.toml file.
-
Install dependencies and run tests:
@lightprotocol/stateless.js and @lightprotocol/zk-compression-cli.
$ light test-validator spawns the following background processes:
- solana test validator
http://127.0.0.1:8899 - prover server
http://127.0.0.1:3001 - photon indexer
http://127.0.0.1:8784
lsof -i:<port> and kill <pid>.