Commit 8933c84
committed
fix(linter): Fix jest/expect-expect rule docs. (#16550)
Fixes #16491.
The default value here is a bit weird so I had to adjust the docs to make it clear that there's a distinction with jest vs vitest.
Generated docs:
```md
## Configuration
This rule accepts a configuration object with the following properties:
### additionalTestBlockFunctions
type: `string[]`
default: `[]`
An array of function names that should also be treated as test blocks.
### assertFunctionNames
type: `string[]`
default: `["expect"]`
A list of function names that should be treated as assertion functions.
NOTE: The default value is `["expect"]` for Jest and
`["expect", "expectTypeOf", "assert", "assertType"]` for Vitest.
```1 parent 82261df commit 8933c84
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | | - | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
0 commit comments