Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,27 @@ Update `Cypress/support/index.js` file to include the cypress-axe commands by ad
import 'cypress-axe'
```

### Add types (typescript only)

```sh
npm i -D @types/axe-core @types/cypress-axe
```
Update `Cypress/tsconfig.json` file to include the cypress-axe and axe-core types:

```json
{
"compilerOptions": {
"types": ["cypress", "cypress-axe", "axe-core"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't need to do this step just FYI, installing the types was enough

}
}
```


### Add a task to log the messages to the terminal when the cypress executes the spec files

[Example - configuring log task](https://docs.cypress.io/api/commands/task.html#Usage)


## Commands

### cy.injectAxe
Expand Down