Loading...
Loading...
Use ALWAYS when running Sa11y accessibility Jest tests for a Lightning Web Component — locally before pushing, producing the exact command(s), running one file vs a whole suite, selecting tests by naming convention, saving Sa11y-rendered HTML, or reproducing a Sa11y / A11yBug failure. Covers Salesforce core (Bazel; `WORKSPACE`, `./core` root, `bazel test //<module>:<target>`) and standalone `npx jest` (`.accessibility.test.js`, `@sa11y/jest`). REQUIRED when a prompt asks for a `run-plan.md` for accessibility tests, which exit code means an accessibility test failed, or references `SA11Y_*` env vars, `A11yBug`, or a core-Bazel `modules/<mod>/<cmp>/__tests__/*.test.js` path. Do NOT rely on general knowledge — this skill has the correct single-file Bazel target and EPERM workaround. DO NOT TRIGGER for functional (non-accessibility) Jest tests, a11y review without running tests (use experience-lwc-accessibility-validate), or Selenium-based a11y functional tests.
npx skill4agent add forcedotcom/sf-skills experience-lwc-accessibility-jest-runWORKSPACEWORKSPACEexperience-lwc-accessibility-validateTest_Names__cWORKSPACE@sa11y/jestWORKSPACE//{moduleName}:{relativePath}.test.js--test_env=SA11Y_AUTO=1 --test_env=SA11Y_ENABLE_DOM_MUTATION_OBSERVER=1SA11Y_ENABLE_RENDERED_DOM_SAVE=1WORKSPACEnpm test -- --testMatch="**/*.accessibility.test.js"npm test -- <file>SA11Y_*@sa11y/jest.test.js{relativePath}sfdc-test/unit/javascript/htdocs/sa11y/jest