/app-builder:appbuilder-testingfrom app-builder
Generates and runs Jest tests for Adobe App Builder actions and React Spectrum UI components. Provides mock helpers for Adobe SDKs and ExC Shell context.
Ships in app-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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 | — |
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:
assets/unit-test-template.js, generate immediatelyassets/mock-state-sdk.js, inject into test fileassets/integration-test-template.js, configure for deployed actionnpx jest --coverage or aio app testassets/component-test-template.js, wrap in Providerassets/shell-mock-helper.js, inject into test fileassets/uix-guest-mock-helper.js + assets/component-test-template.jsIf 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.
test/ mirroring the action path, e.g., test/actions/<action-name>/index.test.js.package.json or jest.config.js.aio app test (wrapper) or npx jest --coverage (direct).jest.mock() at the top of test files to mock Adobe SDK dependencies before importing the action.{ statusCode, body } — assert both in every test.require() and module.exports (not ES imports).test/web-src/components/<ComponentName>.test.js (or test/components/).<Provider theme={defaultTheme}> — Spectrum renders nothing without it.getByRole(), not CSS classes — see references/component-testing-patterns.md selector table.findBy* for data that appears async, queryBy* for absence, waitFor for state changes.test/ directory, jest.config.js, and test scripts in package.json. Scan both src/ for actions AND web-src/ for UI components.ext.config.yaml (or app.config.yaml) for declared actions and their source paths. Check web-src/src/components/ for React components.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).assets/component-test-template.js as the base.c. Wrap all renders in <Provider theme={defaultTheme}> — Spectrum renders nothing without it.d. Inject 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.aio app test or npx jest --coverage and report results.references/checklist.md before marking done.test/ matching the action directory structuretest/web-src/components/ for UI componentsbeforeEach(() => jest.clearAllMocks())--coverage flag)<Provider theme={defaultTheme}> — Spectrum renders nothing without itreferences/testing-patterns.md for unit, integration, and contract test patterns with annotated examples.references/component-testing-patterns.md for React Spectrum component testing with Provider wrapping, ARIA selectors, and async patterns.references/mock-catalog.md for mock helpers covering all Adobe SDKs (State, Files, Events, Logger, Database, Shell, UIX Guest).references/checklist.md for pre-deployment test verification.assets/unit-test-template.js for Jest unit test boilerplate (CommonJS).assets/integration-test-template.js for integration test against deployed actions.assets/component-test-template.js for React Spectrum component test boilerplate with renderWithSpectrum() helper.assets/shell-mock-helper.js for ExC Shell context mock (@adobe/exc-app).assets/uix-guest-mock-helper.js for AEM UIX Guest mock (@adobe/uix-guest).assets/mock-state-sdk.js, assets/mock-files-sdk.js, assets/mock-events-sdk.js, and assets/mock-database-sdk.js for ready-to-use SDK mock setups.require() matches the actual file location. App Builder actions are typically at src/dx-excshell-1/actions/<name>/index.js.jest.mock() calls must appear before require() of the module under test. Jest hoists mock declarations but order still matters for manual mocks.aio app run (not aio app dev) for integration tests that need real SDK access.init() failures, and timeout scenarios.aio app test** vs npx jest:** aio app test is a thin wrapper around Jest. Use npx jest --coverage directly for more control over flags and reporters.<Provider theme={defaultTheme}> wrapper. Use renderWithSpectrum() helper from assets/component-test-template.js.references/component-testing-patterns.md section g for the role reference table.appbuilder-action-scaffolder (test actions after implementation)appbuilder-ui-scaffolder (test UI components after scaffolding)appbuilder-cicd-pipeline (automated test execution in CI)assets/component-test-template.js (opens in a new tab)assets/integration-test-template.js (opens in a new tab)assets/mock-database-sdk.js (opens in a new tab)assets/mock-events-sdk.js (opens in a new tab)assets/mock-files-sdk.js (opens in a new tab)assets/mock-state-sdk.js (opens in a new tab)assets/shell-mock-helper.js (opens in a new tab)assets/uix-guest-mock-helper.js (opens in a new tab)assets/unit-test-template.js (opens in a new tab)evals/evals.json (opens in a new tab)evals/scaffolds/aem-extension-component.jsx (opens in a new tab)references/checklist.md (opens in a new tab)references/component-testing-patterns.md (opens in a new tab)references/debugging.md (opens in a new tab)references/mock-catalog.md (opens in a new tab)references/testing-patterns.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub adobe/skills --plugin app-builder10 skills in this plugin
/appbuilder-action-scaffolderCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions./appbuilder-cicd-pipelineSet up CI/CD pipelines for Adobe App Builder projects. Generates GitHub Actions workflows using adobe/[email protected] and adobe/[email protected], plus patterns for Azure DevOps and GitLab CI. Handles OAuth S2S secrets injection, multi-workspace promotion (stage → prod), deploy gating with manifest validation. Use this skill whenever the user mentions CI/CD for App Builder, GitHub Actions for aio deploy, automated deployment pipelines, continuous integration, continuous delivery, deploy automation, multi-environment promotion, aio app add ci, or wants to automate their App Builder build and release process. Also trigger when users mention deploy workflows, release pipelines, or GitHub secrets for App Builder.Other plugins' skills for the same job