From 3392870b7b28000269409fe002d0d1566b85485a Mon Sep 17 00:00:00 2001 From: Tom Mrazauskas Date: Fri, 3 Jun 2022 12:55:23 +0300 Subject: [PATCH 1/3] fix(@jest/types): replace constrain with default --- packages/jest-types/src/Global.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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, From e36929f8756db4f9755ea262a47665d7b853a768 Mon Sep 17 00:00:00 2001 From: Tom Mrazauskas Date: Fri, 3 Jun 2022 13:02:41 +0300 Subject: [PATCH 2/3] add changelog entry --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From dea78da095c2b5646d865ce2243de4cab6398dd6 Mon Sep 17 00:00:00 2001 From: Tom Mrazauskas Date: Sat, 4 Jun 2022 07:10:36 +0300 Subject: [PATCH 3/3] restart CI