File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 11import type { StyleProp } from 'react-native' ;
22import type { ReactTestInstance } from 'react-test-renderer' ;
3- import type { TextMatch , TextMatchOptions } from '../matches' ;
4- import type { AccessibilityValueMatcher } from '../helpers/matchers/match-accessibility-value' ;
5- import type { Style } from './to-have-style' ;
63
74export interface JestNativeMatchers < R > {
85 toBeOnTheScreen ( ) : R ;
@@ -38,3 +35,22 @@ declare module '@jest/expect' {
3835 interface Matchers < R extends void | Promise < void > >
3936 extends JestNativeMatchers < R > { }
4037}
38+
39+ // Used types
40+
41+ export type Style = ViewStyle | TextStyle | ImageStyle ;
42+
43+ export interface AccessibilityValueMatcher {
44+ min ?: number ;
45+ max ?: number ;
46+ now ?: number ;
47+ text ?: TextMatch ;
48+ }
49+
50+ export type TextMatch = string | RegExp ;
51+ export type TextMatchOptions = {
52+ exact ?: boolean ;
53+ normalizer ?: NormalizerFn ;
54+ } ;
55+
56+ export type NormalizerFn = ( textToNormalize : string ) => string ;
You can’t perform that action at this time.
0 commit comments