Skip to content

Commit 9034c81

Browse files
authored
Update testing-library/prefer-presence-queries rule to support custom react-native matcher toBeOnTheScreens
Signed-off-by: Davyd NRB <[email protected]>
1 parent 9709343 commit 9034c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const ALL_RETURNING_NODES = [
110110
...METHODS_RETURNING_NODES,
111111
];
112112

113-
const PRESENCE_MATCHERS = ['toBeInTheDocument', 'toBeTruthy', 'toBeDefined'];
113+
const PRESENCE_MATCHERS = ['toBeOnTheScreen' ,'toBeInTheDocument', 'toBeTruthy', 'toBeDefined'];
114114
const ABSENCE_MATCHERS = ['toBeNull', 'toBeFalsy'];
115115

116116
export {

0 commit comments

Comments
 (0)