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 1
1
import type { StyleProp } from 'react-native' ;
2
2
import 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' ;
6
3
7
4
export interface JestNativeMatchers < R > {
8
5
toBeOnTheScreen ( ) : R ;
@@ -38,3 +35,22 @@ declare module '@jest/expect' {
38
35
interface Matchers < R extends void | Promise < void > >
39
36
extends JestNativeMatchers < R > { }
40
37
}
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