This is an idea to encourage developers to write accessibility unis tests and thus comply with the accessibility best practices that sa11y is able to detect. We could include @sa11y/jest (https://github.com/salesforce/sa11y/tree/master/packages/jest) as a dependency in package.json and also create the needed config files for its initial setup when using the Salesforce CLI command that creates the basic structure of a project.
Find an example of what needs to be included here:
https://github.com/trailheadapps/visualforce-to-lwc/blob/master/package.json
https://github.com/trailheadapps/visualforce-to-lwc/blob/master/jest.config.js
https://github.com/trailheadapps/visualforce-to-lwc/blob/master/jest-sa11y-setup.js
This is an idea to encourage developers to write accessibility unis tests and thus comply with the accessibility best practices that sa11y is able to detect. We could include @sa11y/jest (https://github.com/salesforce/sa11y/tree/master/packages/jest) as a dependency in package.json and also create the needed config files for its initial setup when using the Salesforce CLI command that creates the basic structure of a project.
Find an example of what needs to be included here:
https://github.com/trailheadapps/visualforce-to-lwc/blob/master/package.json
https://github.com/trailheadapps/visualforce-to-lwc/blob/master/jest.config.js
https://github.com/trailheadapps/visualforce-to-lwc/blob/master/jest-sa11y-setup.js