You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
save and run yarn test, you will get following error:
We've found a bug for you!
/Users/jihchi/Repos/bs-jest-dom/src/__tests__/JestDom_test.re 483:12-17
481 │
482 │ test("Expect.toEqual", () =>
483 │ "Foo" |> expect |> Expect.toEqual("Foo")
484 │ );
This has type:
JestDom.t => JestDom.expect
But somewhere wanted:
string => 'a
The incompatible parts:
JestDom.t (defined as
Dom.eventTarget_like(Dom._node(Dom._element(Dom._baseClass))))
vs
string
Is that expected?
The text was updated successfully, but these errors were encountered:
I don't think they are compatible because I have typed it to only be called on DOM elements. I don't think there is a way for us to use each interchangeably. Open to any suggestions for improvements.
bs-jest-dom: 4.0.0
For example, add following test case:
to the file after line 480:
bs-jest-dom/src/__tests__/JestDom_test.re
Lines 474 to 480 in aa5fcb5
save and run
yarn test
, you will get following error:Is that expected?
The text was updated successfully, but these errors were encountered: