> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Anchor 프로그램 예제

> litesvm으로 anchor 프로그램을 테스트하는 방법을 보여주는 연결된 프로젝트를 확인해 보세요

<Note>
두 저장소의 README에는 `anchor build && cargo test`를 실행하라고 되어 있습니다. 현재
Anchor 및 Solana CLI 릴리스에서는 대신 다음 단계를 실행하세요:

```bash
anchor keys sync
anchor build --arch v0
# Anchor Escrow 전용: 테스트가 idls/에서 IDL을 읽습니다
cp target/idl/anchor_escrow.json idls/
cargo test
```

`anchor keys sync`는 프로그램 ID를 로컬 배포 keypair로 설정하며, 테스트가 이를 로드하므로
프로그램이 `DeclaredProgramIdMismatch`로 실패하지 않습니다.
`--arch v0`는 SBPF v0 프로그램을 빌드하며, 이 저장소들이 사용하는 LiteSVM 버전에서
로드할 수 있습니다. Anchor 1.1.x를 사용하는 경우에는 대신
[anchor-litesvm 빠른 시작](/developers/docs/tools/litesvm/additional-crates/testing-with-anchor-litesvm#installation)의
빌드 명령어를 사용하세요.
</Note>

## `litesvm` crate 예제

<Columns cols={2}>
  <Card title="Anchor CRUD 앱" href="https://github.com/brimigs/anchor-crud-litesvm">
    데이터를 다루는 예제
  </Card>
</Columns>

## `litesvm-token` crate 예제

<Columns cols={2}>
  <Card title="Anchor Escrow 앱" href="https://github.com/brimigs/anchor-escrow-with-litesvm">
    토큰을 다루는 예제
  </Card>
</Columns>
