bs-dom-testing-library
bs-dom-testing-library copied to clipboard
Rescript Conversion
This pull updates bs-dom-testing-library to Rescript 9.1.4.
Changes
-
Rescript 9 revamps the JavaScript Promise API bindings, deprecating
Js.Promise
in favor of Patrick Ecker's Promise proposal. rescript-dom-testing-library now depends on ryyppy/rescript-promise. - BuckleScript web-api bs-webapi dependency has been updated to the Reason Community webapi package rescript-webapi.
- Jest (see glensl/bs-jest pull request 96) and testing-library/dom dependencies updated to latest available version of each. Jest 27.0.0 switched from Jest-Jasmine to Jest-circus changing the behavior of before and after hooks. See glenslbs-jest pull request 96 for more information
-
Recript 9 deprecates the |> pipe operator. rescript-dom-testing-library now uses the
->
arrow pipe operator and data-first semantics - Recript 9 deprecates the send.pipe decorator. rescript-dom-testing-library bindings now use the send decorator.
Non-breaking changes include
- rescript-dom-testing-library includes babel.config.js and jest.config.js illustrating how to transform Jest tests to use ES6 module format
- Readme.md updated to address changes
Tests All bs-dom-testing-library tests updated and passing
Other Considerations
- rescript-webapi is not yet released. Final release of rescript-webapi. When released, this pull may need to be updated to reflect changes in the rescript-webapi package.