Skip to content

Commit

Permalink
eslint docu section
Browse files Browse the repository at this point in the history
  • Loading branch information
madox2 authored and mattphillips committed Sep 8, 2022
1 parent 95e716c commit e12c807
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,19 @@ Add `jest-expect-message` to your Jest `setupFilesAfterEnv` configuration.
}
```

### Configure ESlint

```json
"rules": {
"jest/valid-expect": [
"error",
{
"maxArgs": 2
}
]
}
```

## Usage

- `expect(actual, message)`
Expand Down

0 comments on commit e12c807

Please sign in to comment.