test-component
Skill by uxfront-com
Writes colocated cross-target tests for an Inkline component. It asserts compilation to all 7 targets, diagnostics, conformance, output composition, snapshots and Angular SSR rendering. Aimed at developers working in the Inkline repository.
Install test-component
Built from the published package, never by AI.
git clone --depth 1 https://github.com/uxfront-com/inkline /tmp/inkline && mkdir -p ~/.claude/skills && cp -r /tmp/inkline/.claude/skills/test-component ~/.claude/skills/test-componentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/uxfront-com/inkline /tmp/inkline && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/inkline/.claude/skills/test-component ~/.gemini/antigravity-cli/skills/test-componentAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill covers phase 4 of building an Inkline component: writing colocated cross-target tests. Test files are named `<file>.ink.test.ts`, use Vitest, and sit next to the source they cover. Headless tests go in `headless/` and styled tests go in `styled/`.
The tests run the real compiler in memory through `@inkline/test-utils`. They assert compilation across all 7 targets, expected diagnostics, conformance invariants, output composition, imports, bindings and snapshots. Styled tests add real-DOM checks on Angular SSR, covering classes, attribute reflection, ARIA, slot projection and state. The skill aims for about 100% line and branch coverage on the component's own code, and it is written for developers adding or strengthening tests in the Inkline repository.
Written from the project's SKILL.md and checked against it.
What it can do
- Headless baseline testsChecks compilation to 7 targets, zero diagnostics, file extensions, conformance and snapshots.
- Expected notice checksAsserts only the expected notices INK0045 and INK0068 when two-way binding or hasSlot is used.
- Composition checksConfirms every headless part appears in each target's output.
- Recipe import checksAsserts that styled output imports the expected styleframe recipes.
- Slot and binding checksChecks slot gating and two-way binding syntax per target, such as React, Vue, Svelte and Angular.
- Angular SSR DOM testsRenders the composed component and checks classes, native attributes, slot content and state.
- Coverage guidanceDrives every variant, boolean state, slot branch and fallback toward about 100% line and branch coverage.
What you need
- Inkline repository with ui/components and tooling/test-utils
- @inkline/test-utils package
- Vitest test runner (vp test)
- Angular SSR helper in ui/components
Try asking
- Add cross-target tests for my Badge component in Inkline.
- Check that my Input component emits only the expected notices.
- Write Angular SSR tests that verify rendered classes and slot content.
Good to know
- The prose runScenarioAcrossTargets helper is no longer available; use the listed test-utils exports.
- Real-DOM checks depend on the Angular SSR helper in ui/components.
Security check
B- Allowed to use Write, Edit, Bash without limitsIn
SKILL.md
Checked automatically: .claude/skills/test-component/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBashGrepGlob
Alternatives to test-component
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
test-component: common questions
What does the test-component skill check?
It checks compilation to all 7 targets, expected diagnostics, conformance invariants, output composition, imports and bindings, snapshots, and real-DOM behavior via Angular SSR.
What coverage does it aim for?
It aims for about 100% line and branch coverage on the component's own code. The source says to verify this with vp test --coverage.
Where do the test files go?
Tests are colocated next to the source they cover. Headless tests go in the headless folder and styled tests go in the styled folder, named <file>.ink.test.ts.
How do I install test-component?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is test-component free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is test-component safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit, bash without limits). Review the code before you install. How grades work.
What are alternatives to test-component?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
