> ## Documentation Index
> Fetch the complete documentation index at: https://prism-ddf93e61.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Regression Testing

> Preventing bugs from returning.

Once you've fixed a bug, use Prism to ensure it never returns.

## Exporting Test Cases

Use the `prism export` command to turn a failed mainnet transaction into a local unit test.

```bash theme={null}
prism export <tx-hash> --format test
```

## Integrating with CI

Add the exported test cases to your Rust test suite. Prism ensures the test environment perfectly matches the mainnet state where the bug first occurred.
