Skip to content

Include @sa11y/jest setup in sfdx force:project:create command #463

@albarivas

Description

@albarivas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions