/bs-testing-library

Bucklescript bindings for the Testing Library ecosystem

Primary LanguageReasonMIT LicenseMIT

@testing-library Reason/BuckleScript bindings

🚧 This project is under active development. Expect more documentation and examples in the near future. 🚧

This project provides BuckleScript bindings for the @testing-library ecosystem.

Motivation

This is not the only set of bindings available to use Testing Library with BuckleScript. Projects exist for bs-dom-testing-library, bs-react-testing-library and bs-jest-dom which are linked to from the Testing Library documentation.

These projects provide a more "literal" mapping to the underlying framework. However, the dynamic nature of JavaScript can lead to awkward ergonomics when attempting to map to BuckleScript.

This project attempts to reimagine the ecosystem to feel more at home in the Reason world. See the individual libraries in this project for the specifics.

Acknowledgments

@wyze - The original bindings were a great reference for marshalling techniques between the Reason and JavaScript worlds.