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)
- Host: GitHub
- URL: https://github.com/melange-community/melange-testing-library
- Owner: melange-community
- License: mit
- Created: 2023-06-14T10:56:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-26T09:39:02.000Z (8 months ago)
- Last Synced: 2023-10-26T14:38:48.416Z (8 months ago)
- Language: Reason
- Homepage:
- Size: 142 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Lists
- awesome-reasonml - melange-testing-library - Melange bindings for testing-library (dom-testing-library and react-testing-library) (Reason / Libraries)
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)
; ...
```