diff --git a/CHANGELOG.md b/CHANGELOG.md index f4e81b1b5385..aa62117c8601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - `[jest]` Expose `Config` type ([#12848](https://github.com/facebook/jest/pull/12848)) - `[@jest/reporters]` Improve `GitHubActionsReporter`s annotation format ([#12826](https://github.com/facebook/jest/pull/12826)) -- `[@jest/types]` Infer argument types passed to `test` and `describe` callback functions from `each` tables ([#12885](https://github.com/facebook/jest/pull/12885)) +- `[@jest/types]` Infer argument types passed to `test` and `describe` callback functions from `each` tables ([#12885](https://github.com/facebook/jest/pull/12885), [#12905](https://github.com/facebook/jest/pull/12905)) ### Fixes diff --git a/packages/jest-types/src/Global.ts b/packages/jest-types/src/Global.ts index bc0716c14306..b99d659b4be7 100644 --- a/packages/jest-types/src/Global.ts +++ b/packages/jest-types/src/Global.ts @@ -86,11 +86,7 @@ interface Each { timeout?: number, ) => void; - // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint - ( - strings: TemplateStringsArray, - ...expressions: Array - ): ( + (strings: TemplateStringsArray, ...expressions: Array): ( name: string | NameLike, fn: (arg: Record) => ReturnType, timeout?: number,