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
jest-each ts typings for "test" function seems to be broken, since the test function accepts a testFn function with a single argument (done?), while it should be many arguments (one per each entry of each test suite)
from the jest-each/build/index.d.ts
describe: {
// I think this suite param should be Global.EAchTestFn like in skip and only (which work)
(title: string, suite: Global.TestFn, timeout?: number | undefined): void;
skip: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
only: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
};
To Reproduce
Steps to reproduce the behavior:
const suite = [["a", "b"]];
each(suite).test( // test only and skip is ok though
"whatever",
(a: string, b: string) => { });
Expected behavior
It should compile
Link to repl or repo (highly encouraged)
Please provide either a repl.it demo or a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
Run npx envinfo --preset jest
Paste the results here:
24.5.0 (same package number for jest-each)
The text was updated successfully, but these errors were encountered:
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
jest-each ts typings for "test" function seems to be broken, since the test function accepts a testFn function with a single argument (done?), while it should be many arguments (one per each entry of each test suite)
from the jest-each/build/index.d.ts
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should compile
Link to repl or repo (highly encouraged)
Please provide either a repl.it demo or a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
Run
npx envinfo --preset jest
Paste the results here:
24.5.0 (same package number for jest-each)
The text was updated successfully, but these errors were encountered: