Skip to content

Commit 6f5b08d

Browse files
author
MattAgn
committed
fix: fix flow issue
1 parent f822da0 commit 6f5b08d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/helpers/byTestId.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @flow
22
import { makeQueries } from './makeQueries';
3+
import type { Queries } from './makeQueries';
34

45
const getNodeByTestId = (node, testID) => {
56
return typeof testID === 'string'
@@ -29,7 +30,7 @@ const {
2930
queryBy: queryByTestId,
3031
findBy: findByTestId,
3132
findAllBy: findAllByTestId,
32-
} = makeQueries(queryAllByTestId, getMissingError, getMultipleError);
33+
}: Queries = makeQueries(queryAllByTestId, getMissingError, getMultipleError);
3334

3435
export {
3536
getByTestId,

src/helpers/makeQueries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type GetByQuery = QueryFunction<QueryArg, ReactTestInstance>;
2525
type FindAllByQuery = FindQueryFunction<QueryArg, Array<ReactTestInstance>>;
2626
type FindByQuery = FindQueryFunction<QueryArg, ReactTestInstance>;
2727

28-
type Queries = {
28+
export type Queries = {
2929
getBy: GetByQuery,
3030
getAllBy: GetAllByQuery,
3131
queryBy: QueryByQuery,

0 commit comments

Comments
 (0)