appbuilder-testing
Generate and run tests for Adobe App Builder actions and UI components.
Skill by CatCorner22
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/catcorner22-appbuilder-testing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, design, frontend, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/appbuilder-testing
Tools it pre-approves 7
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash(aio:*)Bash(npm:*)Bash(node:*)Bash(npx:*)ReadWriteEdit
What's inside
- Skill name
appbuilder-testing- Description
- Generate and run tests for Adobe App Builder actions and UI components. Scaffolds Jest unit tests, integration tests against deployed actions, contract tests for Adobe API interactions, and React component tests using Testing Library. Provides mock helpers for State, Files, Events SDKs, @adobe/aio-lib-* clients, ExC Shell context (@adobe/exc-app), and UIX Guest SDK (@adobe/uix-guest). Use this skill whenever the user mentions testing App Builder actions, writing unit tests for Runtime actions, creating integration tests, mocking Adobe SDKs, setting up test fixtures, running aio app test, or wants to verify action behavior before deployment. Also trigger when users mention Jest configuration for App Builder, test coverage, CI test setup, React component test, Testing Library, UI test, Provider wrapper, test my page, test my form, test my table, test my component, mock shell context, mock extension context, debug test failures, or fix Jest errors.
- License
- Apache-2.0
- Compatibility
- Requires aio CLI, Node.js 18+, and Jest
- Allowed tools
- Bash(aio:*), Bash(npm:*), Bash(node:*), Bash(npx:*), Read, Write, Edit
- Metadata
- category: testing
- Instructions
- 139 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Pre-approves some shell commands
Files (17)
- SKILL.md
- component-test-template.js · assets/
- integration-test-template.js · assets/
- mock-database-sdk.js · assets/
- mock-events-sdk.js · assets/
- mock-files-sdk.js · assets/
- mock-state-sdk.js · assets/
- shell-mock-helper.js · assets/
- uix-guest-mock-helper.js · assets/
- unit-test-template.js · assets/
- evals.json · evals/
- aem-extension-component.jsx · evals/scaffolds/
- checklist.md · references/
- component-testing-patterns.md · references/
- debugging.md · references/
- mock-catalog.md · references/
- testing-patterns.md · references/
SKILL.md (first lines)
# App Builder Testing
Generate and run Jest tests for Adobe App Builder actions and React Spectrum UI components. Scaffolds unit tests, integration tests, component tests, and mock helpers for Adobe SDKs.
## Pattern Quick-Reference
Pick the template or reference that matches the user's intent. Default to `assets/unit-test-template.js` for generic test requests.
| User wants | Reference | Template / Asset |
| --- | --- | --- |
| Unit test for an existing action | references/testing-patterns.md | assets/unit-test-template.js |
| Integration test against deployed action | references/testing-patterns.md | assets/integration-test-template.js |
| Component test for React Spectrum UI | references/component-testing-patterns.md | assets/component-test-template.js |
| Mock ExC Shell context in tests | references/component-testing-patterns.md | assets/shell-mock-helper.js |
| Mock AEM extension context in tests | references/component-testing-patterns.md | assets/uix-guest-mock-helper.js |
| Mock State SDK in tests | references/mock-catalog.md | assets/mock-state-sdk.js |
| Mock Files SDK in tests | references/mock-catalog.md | assets/mock-files-sdk.js |
| Mock Events SDK in tests | references/mock-catalog.md | assets/mock-events-sdk.js |
| Mock Database SDK in tests | references/mock-catalog.md | assets/mock-database-sdk.js |
| Full mock catalog (all SDKs) | references/mock-catalog.md | — |
| Contract test for API interactions | references/testing-patterns.md | — |
| Pre-deployment verification | references/checklist.md | — |
| Debug test failures | references/debugging.md | — |
## Fast Path (for clear requests)
When the user's request maps unambiguously to a single pattern above — they name a specific test type, reference a template, or describe a use case that clearly matches one entry — skip straight to generation. Use the matched template and proceed directly.
Examples of fast-path triggers:
- "Write tests for my action" → Read the action source, use `assets/unit-test-template.js`, generate immediately
- "Help me mock State SDK" → Use `assets/mock-state-sdk.js`, inject into test file
- "Add integration tests" → Use `assets/integration-test-template.js`, configure for deployed action
- "Run tests with coverage" → Execute `npx jest --coverage` or `aio app test`
- "Test my component/page/form/table" → Read the component source, use `assets/component-test-template.js`, wrap in Provider
- "Mock shell context" → Use `assets/shell-mock-helper.js`, inject into test file
- "Test my AEM extension component" → Use `assets/uix-guest-mock-helper.js` + `assets/component-test-template.js`
If there is any ambiguity — multiple test types needed, project structure unclear, or the user hasn't specified enough — fall through to the full workflow below.
## Quick Reference
- **Test directory:** Place test files in `test/` mirroring the action path, e.g., `test/actions/<action-name>/index.test.js`.
- **Jest configuration:** App Builder projects use Jest by default. Config lives in `package.json` or `jest.config.js`.
- **Test command:** `aio app test` (wrapper) or `npx jest --coverage` (direct).
- **Mock pattern:** Use `jest.mock()` at the top of test files to mock Adobe SDK dependencies before importing the action.
- **Response shape:** All actions return `{ statusCode, body }` — assert both in every test.
- **Error paths:** Always test 200 (success), 400 (bad input), and 500 (SDK failure) scenarios.
- **CommonJS:** Action test files use `require()` and `module.exports` (not ES imports).
- **Component test directory:** put tests under `test/web-src/components/` (or `test/components/`). Source components live under `web-src/src/components/`.
- **Provider wrapper:** Always wrap in `<Provider theme={defaultTheme}>` — Spectrum renders nothing without it.
- **ARIA selectors:** Use `getByRole()`, not CSS classes — see `references/component-testing-patterns.md` selector table.
- **Async testing:** Use `findBy*` for data that appears async, `queryBy*` for absence, `waitFor` for state changes.
## Full Workflow (for ambiguous or complex requests)
1. **Scan project structure** — Check for existing `test/` directory, `jest.config.js`, and test scripts in `package.json`. Scan both `src/` for actions AND `web-src/` for UI components.
2. **Identify targets to test** — Parse `ext.config.yaml` (or `app.config.yaml`) for declared actions and their source paths. Check `web-src/src/components/` for React components.
3. **Determine test types needed** — Unit tests for logic, integration tests for deployed actions, contract tests for API interactions.
4. **For each action:**
a. Read the action source to identify SDK dependencies (State, Files, Events, Logger, etc.).
b. Generate a unit test using `assets/unit-test-template.js` as the base.
c. Inject appropriate mocks from `references/mock-catalog.md` based on detected dependencies.
d. Add error scenario tests (missing params, auth failures, SDK errors).
5. **For each UI component:**
a. Read the component source to identify dependencies (shell context, UIX guest, action calls).
b. Generate a component test using `assets/component-test-template.js` as the base.
c. Wrap all renders in `<Provider theme={defaultTheme}>` — Spectrum renders nothing without it.
d. Inject the shell mock (`assets/shell-mock-helper.js`) or UIX guest mock (`assets/uix-guest-mock-helper.js`) as needed.
e. Add loading, success, and error state tests for async data using `findBy*` and `waitFor`.
6. **Run tests** — Execute `aio app test` or `npx jest --coverage` and report results.
7. **Validate** — Check against `references/checklist.md` before marking done.
## Example User Prompts
- "Write unit tests for my generic action"
- "Add integration tests for my deployed action"
- "My action uses State SDK — help me mock it in tests"
- "Run tests and show me coverage"
- "Set up Jest for my App Builder project"
- "Test my action handles errors properly"
- "Write component tests for my data table page"
- "Test my AEM extension panel component"
- "Help me mock shell context in my tests"
- "Add tests for my React Spectrum form"
## Inputs To Request
- Current repository path and action file locations
- Which actions need tests (or test all declared actions)
- Target test types: unit, integration, contract, or all
- Whether action is deployed (needed for integration tests)
## Deliverables
- Test files in `test/` matching the action directory structure
- Component test files in `test/web-src/components/` for UI components
- Mock helpers for detected Adobe SDK dependencies
- Shell or UIX Guest mock helpers when components depend on context SDKs
- Jest configuration if not already present (including jsdom environment for component tests)
- Coverage report from test execution
## Quality Bar
- Every action test covers at minimum: success (200), bad input (400), and SDK failure (500) paths
- Mocks are isolated per test via `beforeEach(() => jest.clearAllMocks())`
- No real SDK calls in unit tests — all external dependencies are mocked
- Tests are deterministic and can run offline (no network dependencies in unit tests)
- Coverage reporting is enabled (`--coverage` flag)
- All component tests wrap in `<Provider theme={defaultTheme}>` — Spectrum renders nothing without it
## References
- Use `references/testing-patterns.md` for unit, integration, and contract test patterns with annotated examples.
- Use `references/component-testing-patterns.md` for React Spectrum component testing with Provider wrapping, ARIA selectors, and async patterns.
- Use `references/mock-catalog.md` for mock helpers covering all Adobe SDKs (State, Files, Events, Logger, Database, Shell, UIX Guest).
- Use `references/checklist.md` for pre-deployment test verification.
- Use `assets/unit-test-template.js` for Jest unit test boilerplate (CommonJS).
- Use `assets/integration-test-template.js` for integration test against deployed actions.
- Use `assets/component-test-template.js` for React Spectrum component test boilerplate with `renderWithSpectrum()` helper.From CatCorner22/Cursor_Skills, Apache-2.0.
More from CatCorner22/Cursor_Skills
- 0.529score
appbuilder-action-scaffolder
CatCorner22
Create, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling.
SkillBFreshness: BClaude Code +9 - 0.529score
appbuilder-cicd-pipeline
CatCorner22
Set up CI/CD pipelines for Adobe App Builder projects.
SkillBFreshness: BClaude Code +9 - 0.529score
appbuilder-project-init
CatCorner22
Initialize an Adobe App Builder project end-to-end without Developer Console UI clicks.
SkillBFreshness: BClaude Code +9 - 0.529score
appbuilder-workfront
CatCorner22
Use when orienting, onboarding, or planning before a concrete task — the entry point for building a customized Workfront UI on Adobe App Builder.
SkillBFreshness: BClaude Code +9 - 0.529score
appbuilder-ui-scaffolder
CatCorner22
Generate React Spectrum UI components for Adobe Experience Cloud Shell SPAs and AEM UI Extensions.
SkillBFreshness: BClaude Code +9 - 0.519score
academic-ecosystem-primer
CatCorner22
Router for college and academic work in this library: writing, citations, study planning, source attribution, lecture notes, and presentations.
SkillBFreshness: BClaude Code +9 - 0.519score
academic-writing
CatCorner22
Structure and revise academic prose: thesis statements, outlines, paragraphs, introductions/conclusions, argument flow, and tone by assignment type (analytic…
SkillBFreshness: BClaude Code +9 - 0.519score
citation-literacy
CatCorner22
Format and check academic citations: APA 7, MLA 9, and Chicago (notes-bibliography), in-text vs bibliography, common mistakes, and when to use which style.
SkillBFreshness: BClaude Code +9 - 0.519score
ai-transfer-adaptive
CatCorner22
Router for adaptive AI-transfer techniques: compute triage, AAR debriefs, mid-flight feedback, wayfinding telemetry, annealing phases.
SkillBFreshness: BClaude Code +9 - 0.519score
ai-transfer-advanced
CatCorner22
Router for advanced AI-transfer techniques: seismic joints, sidechain ducking, genre cross-pollination, containment layers, sail trim, interaction tables…
SkillBFreshness: BClaude Code +9 - 0.519score
ai-transfer-architecture
CatCorner22
Router for architectural AI-transfer techniques: dual-axis reasoning, OODA context pipelines, proof DAGs, counterpoint, zoom levels, stage layout, warp/weft.
SkillBFreshness: BClaude Code +9 - 0.519score
ai-transfer-extension
CatCorner22
Router for extension AI-transfer techniques: just-intonation parameter ratios, load-bearing claim locks, orchard grafts, differential query intent, stress…
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 30, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/CatCorner22/Cursor_Skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from CatCorner22
- 0.529score
appbuilder-ui-scaffolder
CatCorner22
Generate React Spectrum UI components for Adobe Experience Cloud Shell SPAs and AEM UI Extensions.
SkillBFreshness: BClaude Code +9 - 0.529score
appbuilder-workfront
CatCorner22
Use when orienting, onboarding, or planning before a concrete task — the entry point for building a customized Workfront UI on Adobe App Builder.
SkillBFreshness: BClaude Code +9 - 0.529score
appbuilder-cicd-pipeline
CatCorner22
Set up CI/CD pipelines for Adobe App Builder projects.
SkillBFreshness: BClaude Code +9 - 0.529score
appbuilder-project-init
CatCorner22
Initialize an Adobe App Builder project end-to-end without Developer Console UI clicks.
SkillBFreshness: BClaude Code +9 - 0.529score
appbuilder-action-scaffolder
CatCorner22
Create, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling.
SkillBFreshness: BClaude Code +9 - 0.519score
citation-literacy
CatCorner22
Format and check academic citations: APA 7, MLA 9, and Chicago (notes-bibliography), in-text vs bibliography, common mistakes, and when to use which style.
SkillBFreshness: BClaude Code +9
Cite this page
appbuilder-testing skill. Agent Mart. https://agentmart.dev/skills/catcorner22-appbuilder-testing (last updated 2026-10-24)