sf-testing

sf-testing is a skill for Claude Code from OrcaQubits/agentic-commerce-skills-plugins. It costs 66 tokens per session (1,530 once invoked), scanned A, original, MIT.

A Salesforce Commerce testing guide for B2C storefront code and B2B Salesforce code. It covers JavaScript, Apex, Lightning Web Components, sandbox checks, linting, and deployment validation.

In plain words
What is it for?
Use it for unit tests, component tests, checkout and storefront tests, Apex coverage, Jest tests for Lightning Web Components, linting, sandbox testing, and CI setup.
Why use it?
It helps choose suitable tests and checks for the two Salesforce Commerce platforms instead of treating them as one system. It also outlines how testing fits into continuous integration, which automatically checks code changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the salesforce-commerce plugin — 22 skills, 1 agent shipped together

Good fit Use it for unit tests, component tests, checkout and storefront tests, Apex coverage, Jest tests for Lightning Web Components, linting, sandbox testing, and CI setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orcaqubits/agentic-commerce-skills-plugins/sf-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OrcaQubits/agentic-commerce-skills-plugins --skill sf-testing
Clone the repo
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins

Made for: Claude Code.

Or install salesforce-commerce, the plugin that ships this one along with the rest of its 22 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sf-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/sf-testing/github.svg)](https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/sf-testing)
Your own site
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/sf-testing"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/sf-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sf-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/sf-testing"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/sf-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,530 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.01530
Opus 5 $0.00033 $0.00765
Sonnet 5 $0.00013 $0.00306
Haiku 4.5 $0.00007 $0.00153

Measured 2d ago against content hash 74d6c08bf5e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-16, from the pricing page.

Security

Grade A, and why

sf-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

salesforce-commerce/skills/sf-testing/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sf-testing

Before Writing Code

Fetch live docs before writing tests or setting up CI/CD.

  1. Web-search: "Salesforce B2C Commerce testing best practices 2026"
  2. Web-search: "Salesforce Apex testing guide code coverage 2026"
  3. Web-search: "Lightning Web Components Jest testing @salesforce/sfdx-lwc-jest 2026"
  4. Web-search: "sfcc-ci CI/CD pipeline documentation 2026"
  5. Web-fetch: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing.htm
  6. Web-fetch the LWC testing guide for current Jest patterns

Conceptual Architecture

Testing Strategy Overview

Layer B2C (SFCC) B2B (Lightning)
Unit Mocha/Jest for JS cartridge logic Apex test classes (@IsTest)
Component N/A LWC Jest (@salesforce/sfdx-lwc-jest)
Integration SCAPI/OCAPI against sandbox sf CLI deploy validation
E2E Full checkout flow on sandbox Full storefront flow on scratch org
Linting ESLint (SFCC config) ESLint (LWC), Apex PMD
Coverage nyc/istanbul (aim 80%+) Salesforce enforced minimum 75%

B2C Commerce Testing

Unit Testing:

  • Framework: Mocha or Jest for JavaScript cartridge logic
  • Mocking: mock dw.* API stubs (dw.system, dw.catalog, dw.order) via proxyquire or jest.mock
  • Test scope: controllers, models, helper scripts
  • Coverage: nyc or istanbul; aim for 80%+ on business logic

Integration Testing:

  • Test SCAPI endpoints against development/staging sandbox
  • Validate full checkout flow, product search, account management
  • Use sandbox-specific test data

Linting and Code Quality:

  • ESLint with SFCC-specific configuration
  • Enforce cartridge naming conventions and API usage patterns

CI/CD Pipeline (sfcc-ci):

1. sfcc-ci code:deploy -> upload cartridge
2. sfcc-ci code:activate -> activate version
3. npm test -> run unit tests
4. sfcc-ci job:run -> integration tests

Sandbox Management:

Environment Purpose
Development Developer-specific feature work
Staging Pre-production validation
Production Controlled release deployment

Read the full file on GitHub · 182 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 182 lines · 66 tokens per session scan A 74d6c08bf5e6

Subscribe to this mod's changes

sf-testing is a skill published in the GitHub repository OrcaQubits/agentic-commerce-skills-plugins (39 stars, last pushed 2d ago), licensed MIT. It adds 66 tokens to every session and 1,530 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

Other skills, from other repositories

archestra-dev-testing

Use when deciding whether a change needs a test and at which level — unit, backend route-level integration, MSW-backed frontend integration, or e2e — or when reviewing tests for the "fluff test" anti-pattern. Start here before archestra-dev-backend-tests or archestra-dev-e2e.

archestra-ai/archestra · 68 tokens

archestra-dev-backend-tests

Use when writing or modifying Archestra backend unit tests (platform/backend/src//.test.ts) — mocking modules, stubbing globals, database fixtures, vitest projects/isolation, or test performance.

archestra-ai/archestra · 46 tokens

archestra-dev-e2e

Use when writing, debugging, or running Archestra Playwright e2e tests, API/UI fixtures, WireMock-backed tests, local/CI e2e setup, or test selectors.

archestra-ai/archestra · 45 tokens

harn-testing

Test owning interfaces, canonical paths, liveness, replay, and stochastic quality at the right altitude.

burin-labs/harn · 24 tokens

spree-testing

Use when the user is writing or running automated tests for a Spree app — model specs, controller specs, API integration tests, admin feature specs, factories, fixtures. Covers RSpec + Factory Bot + Capybara (Spree's stack — NOT Minitest + fixtures), the spreedevtools gem, pulling in Spree's own factories, the shared…

spree/agent-skills · 158 tokens

JMeter Load Testing

Load and performance testing skill using Apache JMeter, covering test plans, thread groups, assertions, listeners, timers, and distributed testing.

PramodDutta/qaskills · 32 tokens