Skip to content

Commit 012974e

Browse files
authored
test: add to runtest + fix bindings (#824)
* test: add to runtest + fix bindings * test: roll back jest rule as tests are launched explicitly in ci
1 parent 96f9b55 commit 012974e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ReactDOMTestUtils.re

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module Simulate = {
8484

8585
external document: Dom.document = "document";
8686

87-
[@mel.send]
87+
[@mel.return nullable] [@mel.send]
8888
external querySelector: (Dom.element, string) => option(Dom.element) =
8989
"querySelector";
9090

@@ -94,7 +94,10 @@ external querySelectorAll:
9494
"querySelectorAll";
9595

9696
[@mel.get] external textContent: Dom.element => string = "textContent";
97-
[@mel.get] external body: Dom.document => option(Dom.element) = "body";
97+
98+
[@mel.return nullable] [@mel.get]
99+
external body: Dom.document => option(Dom.element) = "body";
100+
98101
[@mel.send]
99102
external createElement: (Dom.document, string) => Dom.element =
100103
"createElement";

0 commit comments

Comments
 (0)