From f8dbbc266c97a28dcfe78586838ce8aae78223be Mon Sep 17 00:00:00 2001 From: Mike MacCana Date: Thu, 2 Jul 2026 14:00:41 -0400 Subject: [PATCH 1/2] docs: recommend single command 'anchor test' for Anchor examples; clean legacy references - Standardize Anchor testing instructions on one command: `anchor test`. - Remove alternative `cargo test` suggestions from CONTRIBUTING.md and Anchor READMEs (counter, hello-solana, close-account, transfer-sol, rent, realloc, token-swap, transfer-tokens, create-token, program-derived-addresses, etc.). - Update root README framework description and getting-started text for consistency. - Remove ACTIVE-AUDIT-ITEMS.md from this PR (per request). - Preserve contributor credits in Pinocchio examples (e.g. @MarkFeder ports from solana-developers/program-examples) while cleaning other stale references. Co-authored-by: Cursor --- CONTRIBUTING.md | 5 +++-- README.md | 4 ++-- basics/close-account/anchor/README.md | 7 +++++-- basics/counter/anchor/README.md | 9 ++++++--- basics/favorites/anchor/README.md | 2 +- basics/hello-solana/anchor/README.md | 7 +++---- basics/program-derived-addresses/anchor/README.md | 4 ++-- basics/realloc/anchor/README.md | 4 ++-- basics/rent/anchor/README.md | 4 ++-- basics/transfer-sol/anchor/README.md | 4 ++-- finance/betting-market/anchor/README.md | 2 -- finance/lending/anchor/README.md | 2 +- finance/token-swap/anchor/README.md | 4 ++-- tokens/create-token/anchor/README.md | 4 ++-- tokens/transfer-tokens/anchor/README.md | 4 ++-- 15 files changed, 35 insertions(+), 31 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d2096449b..6b0431528 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,7 +13,8 @@ See [CHANGELOG.md](./CHANGELOG.md) for release history. This file had no changel - Each example lives at `category/example-name//`, e.g. `basics/counter/anchor/`. - Supported frameworks: `anchor`, `quasar`, `pinocchio`, `native`, `asm`. Use the existing layout as a reference. -- Anchor and Quasar programs usually keep Rust tests under `programs//tests/`. +- Anchor programs keep Rust tests under `programs//tests/`. +- Quasar programs keep tests in `src/tests.rs` (inside the single program crate) and run with `cargo test tests::` (per `[testing.rust.test]` in `Quasar.toml`) or `quasar test`. - Native and Pinocchio tests are Rust + LiteSVM, kept under `program/tests/`. ## Tooling @@ -50,7 +51,7 @@ npx tsx --test --test-reporter=spec tests/*.ts ## Documentation -Every `anchor/` (and other framework) directory should include a `README.md`. Use [docs/example-readme-template.md](./docs/example-readme-template.md) as the starting point. +Every `anchor/` (and other framework) directory should include a `README.md`. Use a complete, up-to-date example such as `basics/counter/anchor/README.md` or `finance/escrow/anchor/README.md` as a model. Also update [CHANGELOG.md](./CHANGELOG.md) when you ship user-visible changes. diff --git a/README.md b/README.md index 02f94fa42..8ab6b6ae6 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ Each example is available in one or more of the following frameworks: ## Getting started -You need [Rust](https://www.rust-lang.org/tools/install), [Solana CLI](https://docs.anza.xyz/cli/install), [Anchor](https://www.anchor-lang.com/docs/installation), and [pnpm](https://pnpm.io/installation) installed. Clone the repo and `cd` into any example directory, then run its tests with the command for that framework (shown above) - for an Anchor example, `anchor test`. `pnpm` is used for repo-wide formatting and linting, not for running an example's tests. +You need [Rust](https://www.rust-lang.org/tools/install), [Solana CLI](https://docs.anza.xyz/cli/install), [Anchor](https://www.anchor-lang.com/docs/installation), and [pnpm](https://pnpm.io/installation) installed. Clone the repo and `cd` into any example directory, then run its tests with the command for that framework (shown above) — for an Anchor example, `anchor test`. `pnpm` is used for repo-wide formatting and linting, not for running an example's tests. -To deploy to mainnet or devnet you'll need an RPC endpoint. [Quicknode](https://www.quicknode.com/chains/solana) provides free and paid Solana endpoints - create one and set it as your cluster in `Anchor.toml` or with `solana config set --url `. +To deploy to mainnet or devnet you'll need an RPC endpoint. [Quicknode](https://www.quicknode.com/chains/solana) provides free and paid Solana endpoints — create one and set it as your cluster in `Anchor.toml` or with `solana config set --url `. ## Financial software ("DeFi") diff --git a/basics/close-account/anchor/README.md b/basics/close-account/anchor/README.md index b1d7c770a..5efc0fcd4 100644 --- a/basics/close-account/anchor/README.md +++ b/basics/close-account/anchor/README.md @@ -34,14 +34,17 @@ Two [instruction handlers](https://solana.com/docs/terminology#instruction-handl ## Setup ```bash -pnpm install anchor build ``` +Prerequisites: the [Agave](https://docs.anza.xyz/) toolchain and the [Anchor](https://www.anchor-lang.com/docs) CLI. + ## Testing Tests live in [`programs/close-account/tests/test_close_account.rs`](programs/close-account/tests/test_close_account.rs) and run in-process with LiteSVM: ```bash -pnpm test +anchor test ``` + +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) diff --git a/basics/counter/anchor/README.md b/basics/counter/anchor/README.md index 778ed7d9c..1e5fddb88 100644 --- a/basics/counter/anchor/README.md +++ b/basics/counter/anchor/README.md @@ -15,17 +15,20 @@ See also: the [repository catalog](../../README.md). From `basics/counter/anchor/`: ```bash -pnpm install anchor build ``` +Prerequisites: the [Agave](https://docs.anza.xyz/) toolchain and the [Anchor](https://www.anchor-lang.com/docs) CLI. + ## Testing +LiteSVM integration tests in `programs/counter_anchor/tests/` call handlers and assert the stored count. + ```bash -pnpm test +anchor test ``` -LiteSVM integration tests in `programs/counter_anchor/tests/` call handlers and assert the stored count. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) ## Usage diff --git a/basics/favorites/anchor/README.md b/basics/favorites/anchor/README.md index fb2cac1c3..0de26cf3b 100644 --- a/basics/favorites/anchor/README.md +++ b/basics/favorites/anchor/README.md @@ -26,4 +26,4 @@ LiteSVM tests in `programs/` assert that users cannot overwrite each other's sta ## Usage -`anchor deploy` targets the cluster in `Anchor.toml`. Used in [Solana Professional Education](https://github.com/solana-developers/professional-education). \ No newline at end of file +`anchor deploy` targets the cluster in `Anchor.toml`. \ No newline at end of file diff --git a/basics/hello-solana/anchor/README.md b/basics/hello-solana/anchor/README.md index 3c77bc302..1c45f86c7 100644 --- a/basics/hello-solana/anchor/README.md +++ b/basics/hello-solana/anchor/README.md @@ -14,21 +14,20 @@ See also: [Hello Solana overview](../README.md) and the [repository catalog](../ From this directory (`basics/hello-solana/anchor/`): ```bash -pnpm install anchor build ``` -Prerequisites: [Agave](https://docs.anza.xyz/) CLI (version in `Anchor.toml` `[toolchain]`), [Anchor](https://www.anchor-lang.com/docs), and `pnpm`. +Prerequisites: the [Agave](https://docs.anza.xyz/) toolchain and the [Anchor](https://www.anchor-lang.com/docs) CLI. ## Testing Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/litesvm). No local validator. ```bash -pnpm test +anchor test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. ## Usage diff --git a/basics/program-derived-addresses/anchor/README.md b/basics/program-derived-addresses/anchor/README.md index 01d33b074..7307fbc8b 100644 --- a/basics/program-derived-addresses/anchor/README.md +++ b/basics/program-derived-addresses/anchor/README.md @@ -25,10 +25,10 @@ Prerequisites: [Agave](https://docs.anza.xyz/) CLI (version in `Anchor.toml` `[t Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/litesvm). No local validator. ```bash -pnpm test +anchor test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. ## Usage diff --git a/basics/realloc/anchor/README.md b/basics/realloc/anchor/README.md index 613be7895..abb45aa44 100644 --- a/basics/realloc/anchor/README.md +++ b/basics/realloc/anchor/README.md @@ -25,10 +25,10 @@ Prerequisites: [Agave](https://docs.anza.xyz/) CLI (version in `Anchor.toml` `[t Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/litesvm). No local validator. ```bash -pnpm test +anchor test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. ## Usage diff --git a/basics/rent/anchor/README.md b/basics/rent/anchor/README.md index 5215a52a8..b1325601a 100644 --- a/basics/rent/anchor/README.md +++ b/basics/rent/anchor/README.md @@ -25,10 +25,10 @@ Prerequisites: [Agave](https://docs.anza.xyz/) CLI (version in `Anchor.toml` `[t Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/litesvm). No local validator. ```bash -pnpm test +anchor test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. ## Usage diff --git a/basics/transfer-sol/anchor/README.md b/basics/transfer-sol/anchor/README.md index 92a37c3c8..d94a931e7 100644 --- a/basics/transfer-sol/anchor/README.md +++ b/basics/transfer-sol/anchor/README.md @@ -25,10 +25,10 @@ Prerequisites: [Agave](https://docs.anza.xyz/) CLI (version in `Anchor.toml` `[t Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/litesvm). No local validator. ```bash -pnpm test +anchor test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. ## Usage diff --git a/finance/betting-market/anchor/README.md b/finance/betting-market/anchor/README.md index 9337779b7..63227adeb 100644 --- a/finance/betting-market/anchor/README.md +++ b/finance/betting-market/anchor/README.md @@ -113,5 +113,3 @@ remove the Bet's entry, and a wallet whose index is full can bet again after clo ```sh anchor test ``` - -(`Anchor.toml` sets `test = "cargo test"`, so `cargo test` works too.) diff --git a/finance/lending/anchor/README.md b/finance/lending/anchor/README.md index 3bc967cc3..4fc0817fe 100644 --- a/finance/lending/anchor/README.md +++ b/finance/lending/anchor/README.md @@ -165,7 +165,7 @@ refreshed in the same transaction, so a typical action transaction is ```sh anchor build # or: cargo build-sbf — produces target/deploy/lending.so -anchor test # or: cargo test — runs the LiteSVM integration tests +anchor test # runs the LiteSVM integration tests ``` `anchor build` (or `cargo build-sbf`) must run first: the tests load the compiled diff --git a/finance/token-swap/anchor/README.md b/finance/token-swap/anchor/README.md index 11b48c164..99769e055 100644 --- a/finance/token-swap/anchor/README.md +++ b/finance/token-swap/anchor/README.md @@ -26,10 +26,10 @@ Prerequisites: [Agave](https://docs.anza.xyz/) CLI (version in `Anchor.toml` `[t Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/litesvm). No local validator. ```bash -pnpm test +anchor test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. ## Usage diff --git a/tokens/create-token/anchor/README.md b/tokens/create-token/anchor/README.md index f63c34d8a..b20d1f539 100644 --- a/tokens/create-token/anchor/README.md +++ b/tokens/create-token/anchor/README.md @@ -25,10 +25,10 @@ Prerequisites: [Agave](https://docs.anza.xyz/) CLI (version in `Anchor.toml` `[t Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/litesvm). No local validator. ```bash -pnpm test +anchor test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. ## Usage diff --git a/tokens/transfer-tokens/anchor/README.md b/tokens/transfer-tokens/anchor/README.md index b173325e1..d27abda69 100644 --- a/tokens/transfer-tokens/anchor/README.md +++ b/tokens/transfer-tokens/anchor/README.md @@ -27,10 +27,10 @@ Prerequisites: [Agave](https://docs.anza.xyz/) CLI (version in `Anchor.toml` `[t Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/litesvm). No local validator. ```bash -pnpm test +anchor test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. ## Usage From 9481c678207775f7b1e4d6b9c539a8f87ecbb267 Mon Sep 17 00:00:00 2001 From: Mike MacCana Date: Mon, 6 Jul 2026 09:40:07 -0400 Subject: [PATCH 2/2] docs: remove redundant "Tests call instruction handlers and check onchain state." sentence This sentence was repeated after the command explanation in dozens of Anchor READMEs. It stated the obvious (tests exercise handlers and assert chain state) and added no value once the test command is shown. Removed from all ~36 occurrences while preserving the preceding explanation of the test runner command. This cleanup is on top of the testing docs standardization and credits preservation on this branch. Co-authored-by: Cursor --- basics/account-data/anchor/README.md | 2 +- basics/checking-accounts/anchor/README.md | 2 +- basics/create-account/anchor/README.md | 2 +- basics/cross-program-invocation/anchor/README.md | 2 +- basics/hello-solana/anchor/README.md | 2 +- basics/pda-rent-payer/anchor/README.md | 2 +- basics/processing-instructions/anchor/README.md | 2 +- basics/program-derived-addresses/anchor/README.md | 2 +- basics/pyth/anchor/README.md | 2 +- basics/realloc/anchor/README.md | 2 +- basics/rent/anchor/README.md | 2 +- basics/repository-layout/anchor/README.md | 2 +- basics/transfer-sol/anchor/README.md | 2 +- finance/token-swap/anchor/README.md | 2 +- tokens/create-token/anchor/README.md | 2 +- tokens/nft-minter/anchor/README.md | 2 +- tokens/pda-mint-authority/anchor/README.md | 2 +- tokens/token-extensions/basics/anchor/README.md | 2 +- tokens/token-extensions/cpi-guard/anchor/README.md | 2 +- tokens/token-extensions/default-account-state/anchor/README.md | 2 +- tokens/token-extensions/group/anchor/README.md | 2 +- tokens/token-extensions/immutable-owner/anchor/README.md | 2 +- tokens/token-extensions/interest-bearing/anchor/README.md | 2 +- tokens/token-extensions/memo-transfer/anchor/README.md | 2 +- tokens/token-extensions/metadata/anchor/README.md | 2 +- tokens/token-extensions/mint-close-authority/anchor/README.md | 2 +- tokens/token-extensions/non-transferable/anchor/README.md | 2 +- tokens/token-extensions/permanent-delegate/anchor/README.md | 2 +- tokens/token-extensions/transfer-fee/anchor/README.md | 2 +- .../transfer-hook/allow-block-list-token/anchor/README.md | 2 +- tokens/token-extensions/transfer-hook/counter/anchor/README.md | 2 +- .../token-extensions/transfer-hook/hello-world/anchor/README.md | 2 +- .../transfer-hook/transfer-cost/anchor/README.md | 2 +- .../transfer-hook/transfer-switch/anchor/README.md | 2 +- tokens/token-minter/anchor/README.md | 2 +- tokens/transfer-tokens/anchor/README.md | 2 +- 36 files changed, 36 insertions(+), 36 deletions(-) diff --git a/basics/account-data/anchor/README.md b/basics/account-data/anchor/README.md index c158146aa..4b8871c35 100644 --- a/basics/account-data/anchor/README.md +++ b/basics/account-data/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/basics/checking-accounts/anchor/README.md b/basics/checking-accounts/anchor/README.md index d06c1c97b..aab3bbffc 100644 --- a/basics/checking-accounts/anchor/README.md +++ b/basics/checking-accounts/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/basics/create-account/anchor/README.md b/basics/create-account/anchor/README.md index 283bbe78d..c8316ec8e 100644 --- a/basics/create-account/anchor/README.md +++ b/basics/create-account/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/basics/cross-program-invocation/anchor/README.md b/basics/cross-program-invocation/anchor/README.md index 72420c655..3ad5b3c76 100644 --- a/basics/cross-program-invocation/anchor/README.md +++ b/basics/cross-program-invocation/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/basics/hello-solana/anchor/README.md b/basics/hello-solana/anchor/README.md index 1c45f86c7..705bd729c 100644 --- a/basics/hello-solana/anchor/README.md +++ b/basics/hello-solana/anchor/README.md @@ -27,7 +27,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit anchor test ``` -(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) ## Usage diff --git a/basics/pda-rent-payer/anchor/README.md b/basics/pda-rent-payer/anchor/README.md index 3a13c3ca9..ea7371ad0 100644 --- a/basics/pda-rent-payer/anchor/README.md +++ b/basics/pda-rent-payer/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/basics/processing-instructions/anchor/README.md b/basics/processing-instructions/anchor/README.md index f031ec0dd..d5aa1565d 100644 --- a/basics/processing-instructions/anchor/README.md +++ b/basics/processing-instructions/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/basics/program-derived-addresses/anchor/README.md b/basics/program-derived-addresses/anchor/README.md index 7307fbc8b..cde3b048a 100644 --- a/basics/program-derived-addresses/anchor/README.md +++ b/basics/program-derived-addresses/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit anchor test ``` -(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) ## Usage diff --git a/basics/pyth/anchor/README.md b/basics/pyth/anchor/README.md index f5cc86505..74ddd64c0 100644 --- a/basics/pyth/anchor/README.md +++ b/basics/pyth/anchor/README.md @@ -43,7 +43,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/basics/realloc/anchor/README.md b/basics/realloc/anchor/README.md index abb45aa44..3d1a53f7a 100644 --- a/basics/realloc/anchor/README.md +++ b/basics/realloc/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit anchor test ``` -(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) ## Usage diff --git a/basics/rent/anchor/README.md b/basics/rent/anchor/README.md index b1325601a..50231ee38 100644 --- a/basics/rent/anchor/README.md +++ b/basics/rent/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit anchor test ``` -(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) ## Usage diff --git a/basics/repository-layout/anchor/README.md b/basics/repository-layout/anchor/README.md index 372aa3cde..4b0e5eef6 100644 --- a/basics/repository-layout/anchor/README.md +++ b/basics/repository-layout/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/basics/transfer-sol/anchor/README.md b/basics/transfer-sol/anchor/README.md index d94a931e7..166f063a7 100644 --- a/basics/transfer-sol/anchor/README.md +++ b/basics/transfer-sol/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit anchor test ``` -(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) ## Usage diff --git a/finance/token-swap/anchor/README.md b/finance/token-swap/anchor/README.md index 99769e055..115dc7436 100644 --- a/finance/token-swap/anchor/README.md +++ b/finance/token-swap/anchor/README.md @@ -29,7 +29,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit anchor test ``` -(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) ## Usage diff --git a/tokens/create-token/anchor/README.md b/tokens/create-token/anchor/README.md index b20d1f539..850131a90 100644 --- a/tokens/create-token/anchor/README.md +++ b/tokens/create-token/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit anchor test ``` -(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) ## Usage diff --git a/tokens/nft-minter/anchor/README.md b/tokens/nft-minter/anchor/README.md index 26071e21b..8fe065223 100644 --- a/tokens/nft-minter/anchor/README.md +++ b/tokens/nft-minter/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/pda-mint-authority/anchor/README.md b/tokens/pda-mint-authority/anchor/README.md index a088d909e..dba76c314 100644 --- a/tokens/pda-mint-authority/anchor/README.md +++ b/tokens/pda-mint-authority/anchor/README.md @@ -29,7 +29,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/basics/anchor/README.md b/tokens/token-extensions/basics/anchor/README.md index f19976332..42f9a07c4 100644 --- a/tokens/token-extensions/basics/anchor/README.md +++ b/tokens/token-extensions/basics/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/cpi-guard/anchor/README.md b/tokens/token-extensions/cpi-guard/anchor/README.md index e0220463d..7a062de4c 100644 --- a/tokens/token-extensions/cpi-guard/anchor/README.md +++ b/tokens/token-extensions/cpi-guard/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/default-account-state/anchor/README.md b/tokens/token-extensions/default-account-state/anchor/README.md index 1b6702ac5..037b3ef05 100644 --- a/tokens/token-extensions/default-account-state/anchor/README.md +++ b/tokens/token-extensions/default-account-state/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/group/anchor/README.md b/tokens/token-extensions/group/anchor/README.md index 169b73723..5d01e1054 100644 --- a/tokens/token-extensions/group/anchor/README.md +++ b/tokens/token-extensions/group/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/immutable-owner/anchor/README.md b/tokens/token-extensions/immutable-owner/anchor/README.md index 83ee103ca..48ef40ffb 100644 --- a/tokens/token-extensions/immutable-owner/anchor/README.md +++ b/tokens/token-extensions/immutable-owner/anchor/README.md @@ -27,7 +27,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/interest-bearing/anchor/README.md b/tokens/token-extensions/interest-bearing/anchor/README.md index 74b6ad191..b77c342a0 100644 --- a/tokens/token-extensions/interest-bearing/anchor/README.md +++ b/tokens/token-extensions/interest-bearing/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/memo-transfer/anchor/README.md b/tokens/token-extensions/memo-transfer/anchor/README.md index 613bc8ddc..4a1537a4f 100644 --- a/tokens/token-extensions/memo-transfer/anchor/README.md +++ b/tokens/token-extensions/memo-transfer/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/metadata/anchor/README.md b/tokens/token-extensions/metadata/anchor/README.md index eb758e656..f9896a4d5 100644 --- a/tokens/token-extensions/metadata/anchor/README.md +++ b/tokens/token-extensions/metadata/anchor/README.md @@ -27,7 +27,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/mint-close-authority/anchor/README.md b/tokens/token-extensions/mint-close-authority/anchor/README.md index 22e53fe56..220665724 100644 --- a/tokens/token-extensions/mint-close-authority/anchor/README.md +++ b/tokens/token-extensions/mint-close-authority/anchor/README.md @@ -27,7 +27,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/non-transferable/anchor/README.md b/tokens/token-extensions/non-transferable/anchor/README.md index ff52fbbbf..52e8b3bcc 100644 --- a/tokens/token-extensions/non-transferable/anchor/README.md +++ b/tokens/token-extensions/non-transferable/anchor/README.md @@ -27,7 +27,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/permanent-delegate/anchor/README.md b/tokens/token-extensions/permanent-delegate/anchor/README.md index 7f80c0763..7114fb5d6 100644 --- a/tokens/token-extensions/permanent-delegate/anchor/README.md +++ b/tokens/token-extensions/permanent-delegate/anchor/README.md @@ -27,7 +27,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/transfer-fee/anchor/README.md b/tokens/token-extensions/transfer-fee/anchor/README.md index 1e4b0b782..69573d6f9 100644 --- a/tokens/token-extensions/transfer-fee/anchor/README.md +++ b/tokens/token-extensions/transfer-fee/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/transfer-hook/allow-block-list-token/anchor/README.md b/tokens/token-extensions/transfer-hook/allow-block-list-token/anchor/README.md index 9504a5d13..5a2f35a7c 100644 --- a/tokens/token-extensions/transfer-hook/allow-block-list-token/anchor/README.md +++ b/tokens/token-extensions/transfer-hook/allow-block-list-token/anchor/README.md @@ -29,7 +29,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/transfer-hook/counter/anchor/README.md b/tokens/token-extensions/transfer-hook/counter/anchor/README.md index 39c0c36c0..5c1331c5f 100644 --- a/tokens/token-extensions/transfer-hook/counter/anchor/README.md +++ b/tokens/token-extensions/transfer-hook/counter/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/transfer-hook/hello-world/anchor/README.md b/tokens/token-extensions/transfer-hook/hello-world/anchor/README.md index 32abbd60e..fc6d1f188 100644 --- a/tokens/token-extensions/transfer-hook/hello-world/anchor/README.md +++ b/tokens/token-extensions/transfer-hook/hello-world/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/transfer-hook/transfer-cost/anchor/README.md b/tokens/token-extensions/transfer-hook/transfer-cost/anchor/README.md index 76b2157c9..a3f513aa8 100644 --- a/tokens/token-extensions/transfer-hook/transfer-cost/anchor/README.md +++ b/tokens/token-extensions/transfer-hook/transfer-cost/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-extensions/transfer-hook/transfer-switch/anchor/README.md b/tokens/token-extensions/transfer-hook/transfer-switch/anchor/README.md index 28fe75c0b..eb949a188 100644 --- a/tokens/token-extensions/transfer-hook/transfer-switch/anchor/README.md +++ b/tokens/token-extensions/transfer-hook/transfer-switch/anchor/README.md @@ -28,7 +28,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/token-minter/anchor/README.md b/tokens/token-minter/anchor/README.md index d67196427..34bed7722 100644 --- a/tokens/token-minter/anchor/README.md +++ b/tokens/token-minter/anchor/README.md @@ -29,7 +29,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit pnpm test ``` -This runs `cargo test` as configured in `Anchor.toml`. Tests call instruction handlers and check onchain state. +This runs `cargo test` as configured in `Anchor.toml`. ## Usage diff --git a/tokens/transfer-tokens/anchor/README.md b/tokens/transfer-tokens/anchor/README.md index d27abda69..f0ca4f85f 100644 --- a/tokens/transfer-tokens/anchor/README.md +++ b/tokens/transfer-tokens/anchor/README.md @@ -30,7 +30,7 @@ Tests run in-process with [LiteSVM](https://www.anchor-lang.com/docs/testing/lit anchor test ``` -(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) Tests call instruction handlers and check onchain state. +(`anchor test` runs the command configured in `Anchor.toml` `[scripts] test`.) ## Usage