mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
1 parent
34ae9facd5
commit
d98fc9de2d
1 file changed
+4
-2
Vendored
+4
-2
@@ -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,
|
||||
...
|
||||
|
||||
Reference in new issue
Block a user