Skip to content

Commit

Permalink
feat: port to Melange v2
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Sep 12, 2023
1 parent e6547a8 commit 5e2c75a
Show file tree
Hide file tree
Showing 7 changed files with 323 additions and 331 deletions.
26 changes: 13 additions & 13 deletions dom/src/DomTestingLibrary.rei
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module ByLabelTextQuery: {
"exact": Js.undefined(bool),
"normalizer": Js.undefined(string => string),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(
~selector: string=?,
Expand All @@ -23,7 +23,7 @@ module ByPlaceholderTextQuery: {
"exact": Js.undefined(bool),
"normalizer": Js.undefined(string => string),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(~exact: bool=?, ~normalizer: string => string=?, unit) => options;
};
Expand All @@ -35,7 +35,7 @@ module ByTextQuery: {
"ignore": Js.undefined(string),
"normalizer": Js.undefined(string => string),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(
~exact: bool=?,
Expand All @@ -52,7 +52,7 @@ module ByAltTextQuery: {
"exact": Js.undefined(bool),
"normalizer": Js.undefined(string => string),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(~exact: bool=?, ~normalizer: string => string=?, unit) => options;
};
Expand All @@ -62,7 +62,7 @@ module ByTitleQuery: {
"exact": Js.undefined(bool),
"normalizer": Js.undefined(string => string),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(~exact: bool=?, ~normalizer: string => string=?, unit) => options;
};
Expand All @@ -72,7 +72,7 @@ module ByDisplayValueQuery: {
"exact": Js.undefined(bool),
"normalizer": Js.undefined(string => string),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(~exact: bool=?, ~normalizer: string => string=?, unit) => options;
};
Expand All @@ -91,7 +91,7 @@ module ByRoleQuery: {
"selected": Js.undefined(bool),
"trim": Js.undefined(bool),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(
~checked: bool=?,
Expand All @@ -115,7 +115,7 @@ module ByTestIdQuery: {
"exact": Js.undefined(bool),
"normalizer": Js.undefined(string => string),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(~exact: bool=?, ~normalizer: string => string=?, unit) => options;
};
Expand All @@ -130,7 +130,7 @@ module MutationObserver: {
"childList": Js.undefined(bool),
"subtree": Js.undefined(bool),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(
~attributeFilter: array(string)=?,
Expand All @@ -155,7 +155,7 @@ module WaitFor: {
"stackTraceError": Js.undefined(Js.Exn.t),
"timeout": Js.undefined(int),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(
~container: Dom.element=?,
Expand All @@ -175,7 +175,7 @@ module WaitForElement: {
"container": Js.undefined(Dom.element),
"timeout": Js.undefined(int),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(
~container: Dom.element=?,
Expand Down Expand Up @@ -224,7 +224,7 @@ module Configure: {
"testIdAttribute": Js.undefined(string),
"throwSuggestions": Js.undefined(bool),
};
[@bs.obj]
[@mel.obj]
external makeOptions:
(
~_disableExpensiveErrorDiagnostics: bool=?,
Expand All @@ -251,7 +251,7 @@ let configure:
) =>
unit;

[@bs.module "@testing-library/dom"]
[@mel.module "@testing-library/dom"]
external getNodeText: Dom.element => string = "getNodeText";

/**
Expand Down
Loading

0 comments on commit 5e2c75a

Please sign in to comment.