You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
each.test.ts:5:1 - error TS2349: This expression is not callable.
Not all constituents of type 'void | ((title: string, test: EachTestFn<TestFn>, timeout?: number | undefined) => void)' are callable.
Type 'void' has no call signatures.
5 items('Test %s', item => {
~~~~~
each.test.ts:9:1 - error TS2349: This expression is not callable.
Not all constituents of type 'void | ((title: string, test: EachTestFn<TestFn>, timeout?: number | undefined) => void)' are callable.
Type 'void' has no call signatures.
9 test.each`
~~~~~~~~~~
10 item
~~~~~~
...
12 bar
~~~
13 `(item => {
~
Found 2 errors.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
The return type of
test.each
isvoid | ((title: string, test: EachTestFn<TestFn>, timeout?: number | undefined) => void)
.It should not include
void
, as this makes the result uncallable.To Reproduce
With Jest v26.4.2 and Typescript v4.0.2, create
each.test.ts
.Steps to reproduce the behavior:
tsc
produces:Expected behavior
The given tests should compile.
envinfo
The text was updated successfully, but these errors were encountered: