genkit-tools-testing
Skill6.6k starsChanged 6 days agoApache-2.0View on GitHub
Guide for writing and reviewing Vitest unit tests (*.test.ts) in genkit-tools/. Use when creating, modifying, fixing, or reviewing tests under genkit-tools/.
1 other project uses a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- firebase/genkitword for word, first seen Nov 29, 2026
Who's talking about genkit-ai/genkit
- genkit-ai/docsite“docs: use kebab-case for CLI commands and options in evaluation docs”GitHub · Sep 30, 2026 · 2 reactions
- vortsghost2025/storytime“chore(deps): bump @genkit-ai/mcp from 1.31.0 to 1.33.0”GitHub · Apr 29, 2026 · 2 reactions
- vortsghost2025/storytime“chore(deps): bump @genkit-ai/mcp from 1.31.0 to 1.32.0”GitHub · Apr 15, 2026 · 2 reactions
- genkit-ai/docsite“docs: document dynamic model resolution across JS, Python, and Dart”GitHub · Oct 28, 2026 · 1 reactions
- nozomi-koborinai/ableton-osc-mcp“deps: bump github.com/firebase/genkit/go from 1.13.1 to 1.14.0 in the minor-and-patch group”GitHub · Oct 24, 2026 · 1 reactions
The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 26
Talked about on GitHub (26 times).
On GitHub · 26
- Sep 30, 2026docs: use kebab-case for CLI commands and options in evaluation docs — genkit-ai/docsite2 reactions
- Apr 29, 2026chore(deps): bump @genkit-ai/mcp from 1.31.0 to 1.33.0 — vortsghost2025/storytime2 reactions · 1 comment
- Apr 15, 2026chore(deps): bump @genkit-ai/mcp from 1.31.0 to 1.32.0 — vortsghost2025/storytime2 reactions · 2 comments
- Oct 28, 2026docs: document dynamic model resolution across JS, Python, and Dart — genkit-ai/docsite1 reaction · 2 comments
- Oct 24, 2026deps: bump github.com/firebase/genkit/go from 1.13.1 to 1.14.0 in the minor-and-patch group — nozomi-koborinai/ableton-osc-mcp1 reaction · 1 comment
21 more on GitHub
- Oct 21, 2026docs: update JS skill for Genkit 1.43 and Go skill for Genkit Go 1.14 — genkit-ai/skills1 reaction
- Sep 30, 2026docs: replace deprecated genkit ui:start with genkit start — genkit-ai/docsite1 reaction
- Sep 6, 2026deps: bump github.com/firebase/genkit/go from 1.10.0 to 1.13.1 — nozomi-koborinai/ableton-osc-mcp1 reaction · 1 comment
- Aug 23, 2026deps: bump github.com/firebase/genkit/go from 1.10.0 to 1.12.0 — nozomi-koborinai/ableton-osc-mcp1 reaction · 2 comments
- Aug 17, 2026docs(go): bring the Go docs onto the current API and link the sample suite — genkit-ai/docsite1 reaction
- May 25, 2026feat(dart): Add interrupt releated span metadata — genkit-ai/genkit-dart1 reaction
- May 14, 2026docs(go): Document Anthropic strict tool use — genkit-ai/docsite1 reaction
- Apr 27, 2026feat(go): add middleware reference to Genkit Go skill — genkit-ai/skills1 reaction
- Mar 24, 2026chore(deps): update go samples — googleapis/mcp-toolbox1 reaction · 17 comments
- Mar 18, 2026docs: Update GitHub repository URLs from firebase/genkit to genkit-ai/genkit while preserving Go package paths — genkit-ai/docsite1 reaction · 1 comment
- Nov 2, 2026[JS] MCP tool calls fail on input JSON schema that has an array property whose items are `$ref` — ssbushi/genkit0 reactions · 4 comments
- Oct 28, 2026A2UI CLI distributed as a binary artifact that can be downloaded by developers — a2ui-project/a2ui0 reactions · 3 comments
- Oct 21, 2026[JS] MCP tool calls fail on input JSON schema that has an array property whose items are `$ref` — ssbushi/genkit0 reactions
- Oct 13, 2026agents: served agents send error cause and toString() in AgentOutput.error — genkit-ai/genkit-dart0 reactions
- Aug 25, 2026Feat: allowed_tools support — genkit-ai/genkit-dart0 reactions
- Jun 5, 2026[Add] Genkit (genkit-ai/genkit) — PyTorchKR/landscape0 reactions · 3 comments
- May 31, 2026Broken links detected (2026-06-14) — awesome-ai-tools/curated-mcp-servers0 reactions
- May 25, 2026Integration proposal: Google Genkit Middleware (auto-drafted 2026-05-25) — OpenCircuitDev/codetalker0 reactions
- May 12, 2026may 2026 — kimtth/azure-openai-llm-notes0 reactions
- May 4, 2026[bot] Firebase Genkit (`genkit`) not instrumented — no tracing for generate, chat, embed, or flow execution in JavaScript — braintrustdata/braintrust-sdk-javascript0 reactions
- Mar 20, 2026The MCP tools + built in search doesn't work properly yet — Gerifield/hAIry-botter0 reactions · 1 comment
Other versions1 project uses a version of this.
Word for word · 1
- firebase/genkit★ 6.6k100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- genkit-tools/AGENTS.mdAGENTS.md
- go/AGENTS.mdAGENTS.md
- js/AGENTS.mdAGENTS.md
- genkit-tools-cliSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
One behavior per test: Keep each it(...) block focused on a single behavior following arrange -> act -> assert with a clear, …
- Very specific: line 11
Prefer single structured assertions: Use one toMatchObject / toEqual assertion on structured outputs instead of scattering field-by-field …
- Very specific: line 12
Parameterized variations (
it.each): Use it.each when verifying the same behavior across multiple input variations and a table … - Very specific: line 13
Prefer separate it(...) blocks when cases exercise distinct behaviors or branches, need different setup or assertions, or are simple enough …
- Very specific: line 14
Prefer named-object rows (it.each([{ name: '...', ..., expected: ...
- Distinctive: line 15
Test our logic, not library internals: Do not write unit tests that merely verify third-party library or Zod schema validation behavior.
- Very specific: line 19
Mirror
src/intests/: Place tests in tests/<subpath>/<name>.test.ts (kebab-case) mirroring src/<subpath>/<name>.ts. - Very specific: line 20
Keep fixtures separate from test suites: Put reusable test builders and fixture constants in dedicated testing/mock_data.ts helpers rather …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Genkit Tools Testing Guide
1. Test Structure & Philosophy
- One behavior per test: Keep each
it(...)block focused on a single behavior followingarrange -> act -> assertwith a clear, behavior-driven description. Split tests that assert multiple independent functions or behaviors. - Prefer single structured assertions: Use one
toMatchObject/toEqualassertion on structured outputs instead of scattering field-by-fieldexpect(...)calls on the same object, and avoid asserting incidental ordering (e.g.Object.keys(...)insertion order) when order isn't part of the contract. - Parameterized variations (
it.each): Useit.eachwhen verifying the same behavior across multiple input variations and a table meaningfully reduces duplication:- Prefer separate
it(...)blocks when cases exercise distinct behaviors or branches, need different setup or assertions, or are simple enough thatit.eachadds more indirection than clarity. - Prefer named-object rows (
it.each([{ name: '...', ..., expected: ... }])with$namein the test title) over positional tuples whenever rows have 3+ fields or complex objects; simple 2-element[input, expected]scalar tuples are fine for concise mappings.
- Prefer separate
- Test our logic, not library internals: Do not write unit tests that merely verify third-party library or Zod schema validation behavior. Focus on our domain logic, transformations, edge-case fallbacks, and error handling.
2. File Layout & Shared Fixtures
- Mirror
src/intests/: Place tests intests/<subpath>/<name>.test.ts(kebab-case) mirroringsrc/<subpath>/<name>.ts. - Keep fixtures separate from test suites: Put reusable test builders and fixture constants in dedicated
testing/mock_data.tshelpers rather than duplicating large inline objects across*.test.tsfiles.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

