title |
---|
Unit test reference manual |
Clarinet supports automatic testing, where your blockchain application requirements can be converted to test cases. Clarinet's testing harness is run on Deno: Define your unit tests and then register them with an API call to Clarinet.test
inside your test files.
Clarinet's Deno module comes with a number of predefined objects that simulate the Stacks and Bitcoin production environments your smart contracts operate in. This page is a reference manual for those Deno objects so that you can write robust unit tests for your Clarity smart contracts.
For a complete list of classes, objects, and interfaces available, see the Deno's Clarinet module index.