diff --git a/packages/react-native/flow/jest.js b/packages/react-native/flow/jest.js index fe6ae3cfd82..9fe23df97db 100644 --- a/packages/react-native/flow/jest.js +++ b/packages/react-native/flow/jest.js @@ -219,7 +219,7 @@ type JestStyledComponentsMatcherValue = | string | JestAsymmetricEqualityType | RegExp - | typeof undefined; + | void; type JestStyledComponentsMatcherOptions = { media?: string, @@ -755,13 +755,11 @@ interface JestExpectType { * specific arguments. */ toHaveBeenCalledWith(...args: Array): void; - toBeCalledWith(...args: Array): void; /** * Use .toHaveBeenLastCalledWith to ensure that a mock function was last called * with specific arguments. */ toHaveBeenLastCalledWith(...args: Array): void; - lastCalledWith(...args: Array): void; /** * Check that an object has a .length property and it is set to a certain * numeric value. @@ -1131,7 +1129,9 @@ declare var it: { * @param {table} table of Test */ each( - ...table: Array | mixed> | [Array, string] + ...table: + | $ReadOnlyArray<$ReadOnlyArray | mixed> + | [$ReadOnlyArray, string] ): ( name: JestTestName, fn?: (...args: Array) => ?Promise,