Skip to content

Commit

Permalink
test: add to runtest + fix bindings (#824)
Browse files Browse the repository at this point in the history
* test: add to runtest + fix bindings

* test: roll back jest rule

as tests are launched explicitly in ci
  • Loading branch information
jchavarri committed Dec 8, 2023
1 parent 96f9b55 commit 012974e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ReactDOMTestUtils.re
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module Simulate = {

external document: Dom.document = "document";

[@mel.send]
[@mel.return nullable] [@mel.send]
external querySelector: (Dom.element, string) => option(Dom.element) =
"querySelector";

Expand All @@ -94,7 +94,10 @@ external querySelectorAll:
"querySelectorAll";

[@mel.get] external textContent: Dom.element => string = "textContent";
[@mel.get] external body: Dom.document => option(Dom.element) = "body";

[@mel.return nullable] [@mel.get]
external body: Dom.document => option(Dom.element) = "body";

[@mel.send]
external createElement: (Dom.document, string) => Dom.element =
"createElement";
Expand Down

0 comments on commit 012974e

Please sign in to comment.