Align internal and external definition of describe function from jest (#49934)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49934

The typing of internal version of jest and the libdef in react-native has diverged a bit. This diff aligns the typing for `describe`

Changelog: [Internal]

Reviewed By: gkz

Differential Revision: D70917375

fbshipit-source-id: 9c2ab98a08394aa187712f4966748a8a60e202b1
This commit is contained in:
Sam Zhou authored and Facebook GitHub Bot committed 2025-03-10 15:19:38 -07:00
1 parent 34ae9facd5
commit d98fc9de2d
1 file changed
+4 -2
+4 -2
View File
@@ -1040,10 +1040,12 @@ declare var describe: {
* @param {table} table of Test
*/
each(
...table: Array<Array<mixed> | mixed> | [Array<string>, string]
...table:
| $ReadOnlyArray<$ReadOnlyArray<mixed> | mixed>
| [$ReadOnlyArray<string>, string]
): (
name: JestTestName,
fn?: (...args: Array<any>) => ?Promise<mixed>,
fn?: (...args: $ReadOnlyArray<any>) => ?Promise<mixed>,
timeout?: number,
) => void,
...