Zum Inhalt springen
Kitbay

experience-lwc-accessibility-jest-run

Apache-2.0Aktualisiert am 6. Nov. 20261.156GitHub-Sterne

A Salesforce skill for running Sa11y accessibility Jest tests on Lightning Web Components before code is pushed.

Was der Skill vermittelt

A Salesforce skill for running Sa11y accessibility Jest tests on Lightning Web Components before code is pushed. It covers two setups: Salesforce core modules tested through Bazel, and standalone projects that run test files ending in .accessibility.test.js with npx jest and the @sa11y/jest package. The agent produces the right commands, runs a single file or a whole suite, can save the HTML that Sa11y rendered, and explains what each exit code means when reproducing a failure. It does not cover functional Jest tests or accessibility reviews that are done without running tests. It needs Node.js and npm.

Funktionen

  • Run Sa11y accessibility Jest tests for LWCs
  • Select one test file or a whole suite
  • Save the HTML rendered during a Sa11y test
  • Interpret test exit codes when reproducing failures