Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.271 ·

New claude plugin test CLI command for function-hooks plugins

New claude plugin test command runs a plugin's hook tests in a sandboxed environment that mimics the real runtime

Use it now Notable New Features
JSON All of v2.1.271
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Plugin TestingArea: what it touches
New FeaturesKind: in v2.1.271,
What probably matters to youSection of the release

Unclear What the new limit-reset command itself does is not described beyond its registration.

What

Claude Code adds a new command, claude plugin test [dir], which runs a plugin's function-hooks test files (files ending in .test.ts or .test.tsx) inside a sandboxed environment built to behave like the real hooks runtime. It imports a testing kit (with describe, expect, mock, test, and tier functions) from claude-code/testing, runs each test file in its own process (in parallel, up to a cap), and reports pass/fail counts.

  • A --file mode prints a JSON test report instead of the normal output.
  • The command checks whether the underlying hooks-modules feature is enabled and errors out if hooks modules are disabled, for example via disableAllHooks or allowManagedHooksOnly settings.
  • Plugins loaded through claude plugin test get their own label wherever Claude Code lists where a plugin came from.
  • A related limit-reset command was also added to the CLI's command list, loaded the same lazy way as other subcommands.
Why

This gives plugin authors a way to write and run automated tests for their hooks (custom scripts that run at specific points, like before a tool call) without needing to exercise them inside a live Claude Code session.

Read from
Names in the bundleclaude plugin test
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up claude plugin test, on Plugin commands reference. claude plugin test [directory] plugins/cli-reference see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhat the new `limit-reset` command itself does is not described beyond its registration.
Anthropic's documentation agreesAnthropic's documentation has since written up claude plugin test, on Plugin commands reference.

See this entry in the whole of v2.1.271 →

Feedback