@@ -2,7 +2,7 @@ type undefined = Js.undefined<unit>
2
2
3
3
let undefined : undefined = Js .Undefined .empty
4
4
5
- @module ("react-dom/test-utils.js " )
5
+ @module ("react-dom/test-utils" )
6
6
external reactAct : ((. unit ) => undefined ) => unit = "act"
7
7
8
8
let act : (unit => unit ) => unit = func => {
@@ -13,40 +13,40 @@ let act: (unit => unit) => unit = func => {
13
13
reactAct (reactFunc )
14
14
}
15
15
16
- @module ("react-dom/test-utils.js " )
16
+ @module ("react-dom/test-utils" )
17
17
external reactActAsync : ((. unit ) => Js .Promise .t <'a >) => Js .Promise .t <unit > = "act"
18
18
19
19
let actAsync = func => {
20
20
let reactFunc = (. ()) => func ()
21
21
reactActAsync (reactFunc )
22
22
}
23
23
24
- @module ("react-dom/test-utils.js " )
24
+ @module ("react-dom/test-utils" )
25
25
external isElement : 'element => bool = "isElement"
26
26
27
- @module ("react-dom/test-utils.js " )
27
+ @module ("react-dom/test-utils" )
28
28
external isElementOfType : ('element , React .component <'props >) => bool = "isElementOfType"
29
29
30
- @module ("react-dom/test-utils.js " )
30
+ @module ("react-dom/test-utils" )
31
31
external isDOMComponent : 'element => bool = "isDOMComponent"
32
32
33
- @module ("react-dom/test-utils.js " )
33
+ @module ("react-dom/test-utils" )
34
34
external isCompositeComponent : 'element => bool = "isCompositeComponent"
35
35
36
- @module ("react-dom/test-utils.js " )
36
+ @module ("react-dom/test-utils" )
37
37
external isCompositeComponentWithType : ('element , React .component <'props >) => bool =
38
38
"isCompositeComponentWithType"
39
39
40
40
module Simulate = {
41
- @module ("react-dom/test-utils.js " ) @scope ("Simulate" )
41
+ @module ("react-dom/test-utils" ) @scope ("Simulate" )
42
42
external click : Dom .element => unit = "click"
43
- @module ("react-dom/test-utils.js " ) @scope ("Simulate" )
43
+ @module ("react-dom/test-utils" ) @scope ("Simulate" )
44
44
external clickWithEvent : (Dom .element , 'event ) => unit = "click"
45
- @module ("react-dom/test-utils.js " ) @scope ("Simulate" )
45
+ @module ("react-dom/test-utils" ) @scope ("Simulate" )
46
46
external change : Dom .element => unit = "change"
47
- @module ("react-dom/test-utils.js " ) @scope ("Simulate" )
47
+ @module ("react-dom/test-utils" ) @scope ("Simulate" )
48
48
external blur : Dom .element => unit = "blur"
49
- @module ("react-dom/test-utils.js " ) @scope ("Simulate" )
49
+ @module ("react-dom/test-utils" ) @scope ("Simulate" )
50
50
external changeWithEvent : (Dom .element , 'event ) => unit = "change"
51
51
let changeWithValue = (element , value ) => {
52
52
let event = {
@@ -64,13 +64,13 @@ module Simulate = {
64
64
}
65
65
changeWithEvent (element , event )
66
66
}
67
- @module ("react-dom/test-utils.js " ) @scope ("Simulate" )
67
+ @module ("react-dom/test-utils" ) @scope ("Simulate" )
68
68
external canPlay : Dom .element => unit = "canPlay"
69
- @module ("react-dom/test-utils.js " ) @scope ("Simulate" )
69
+ @module ("react-dom/test-utils" ) @scope ("Simulate" )
70
70
external timeUpdate : Dom .element => unit = "timeUpdate"
71
- @module ("react-dom/test-utils.js " ) @scope ("Simulate" )
71
+ @module ("react-dom/test-utils" ) @scope ("Simulate" )
72
72
external ended : Dom .element => unit = "ended"
73
- @module ("react-dom/test-utils.js " ) @scope ("Simulate" )
73
+ @module ("react-dom/test-utils" ) @scope ("Simulate" )
74
74
external focus : Dom .element => unit = "focus"
75
75
}
76
76
0 commit comments