Skip to content

Commit

Permalink
feat: TypeScript migration, add typings (#77)
Browse files Browse the repository at this point in the history
Closes #43
  • Loading branch information
sapegin authored Nov 21, 2020
1 parent 3fca563 commit 9249d2a
Show file tree
Hide file tree
Showing 6 changed files with 329 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "tamia",
"extends": "tamia/typescript",
"globals": {
"cy": false,
"Cypress": false,
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ import 'cypress-axe'

4. **Add a task to log the messages to the terminal** when Cypress executes the spec files. [Example - configuring log task](https://docs.cypress.io/api/commands/task.html#Usage).

### TypeScript

If you’re using TypeScript, add cypress-axe types to your Cypress’ `tsconfig.json` file:

```json
{
"compilerOptions": {
"baseUrl": "./",
"target": "es5",
"lib": ["esnext", "dom"],
"types": ["cypress", "cypress-axe"]
},
"include": ["."]
}
```

## Commands

### cy.injectAxe
Expand Down
Loading

0 comments on commit 9249d2a

Please sign in to comment.