Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/melange-community/melange-testing-library

Melange bindings for testing-library (dom-testing-library and react-testing-library)
https://github.com/melange-community/melange-testing-library

Last synced: 7 days ago
JSON representation

Melange bindings for testing-library (dom-testing-library and react-testing-library)

Lists

README

        

# melange-testing-library

> [Melange](https://github.com/melange-re/melange) bindings for [testing-library](https://testing-library.com/) (**[dom-testing-library](https://github.com/testing-library/dom-testing-library)** and **[react-testing-library](https://github.com/testing-library/react-testing-library)**)

Initially forked from [@wyze/bs-dom-testing-library](https://github.com/wyze/bs-dom-testing-library) and [@wyze/bs-react-testing-library](https://github.com/wyze/bs-react-testing-library).

## Install

Install [opam](https://opam.ocaml.org/) package manager.

Then:

```sh
opam install melange-testing-library
```

The bindings support the following versions of the `@testing-library/react` and `@testing-library/dom`
npm packages, which should be installed separately:

```json
"devDependencies": {
"@testing-library/react": "^11.1.0",
"@testing-library/dom": "^7.26.3",
}
```

# Setup

Add `melange-testing-library.dom` and `melange-testing-library.react` to the `libraries` in your `dune` file:

```lisp
; ...
(libraries melange-testing-library.dom melange-testing-library.react)
; ...
```