Skip to content

Commit e87b0c3

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Fix some cyclic types
Summary: X-link: react/react-native#43630 Changelog: [Internal] Reviewed By: gkz Differential Revision: D55271602 fbshipit-source-id: cb93fae6231ade6e5865dd7e0756a12568dece12
1 parent 96c6b89 commit e87b0c3

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

packages/metro-file-map/src/crawlers/__tests__/integration-test.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,16 @@ const FIXTURES_DIR = join(__dirname, '..', '__fixtures__');
5656
// Crawlers may return the target for symlinks *if* they can do so efficiently,
5757
// (Watchman with symlink_target), but otherwise they should return 1 and
5858
// defer to the caller. This matcher helps with nested expectations.
59-
declare var expect: {...expect, oneOf: () => {}};
59+
declare var expect: {
60+
/** The object that you want to make assertions against */
61+
(value: mixed, description?: string): JestExpectType,
62+
extend(matchers: {[name: string]: JestMatcher, ...}): void,
63+
assertions(expectedAssertions: number): void,
64+
any(value: mixed): JestAsymmetricEqualityType,
65+
oneOf: (mixed, mixed) => boolean,
66+
...
67+
};
68+
6069
function oneOf(this: $FlowFixMe, actual: mixed, ...expectOneOf: mixed[]) {
6170
const pass = expectOneOf.includes(actual);
6271
return {

0 commit comments

Comments
 (0)