package melange-testing-library

  1. Overview
  2. Docs
Melange bindings for testing-library (dom-testing-library and react-testing-library)

Install

Dune Dependency

Authors

Maintainers

Sources

melange-testing-library-0.1.0.tbz
sha256=43cce3297b23ef14e01631b615a5b34ea238d2ff8fde72d68beef28f4ac811d6
sha512=74b931034c62865c3e83171653d1157704f7660a3be3a36e9f12fd80677e1be1bf51c4fc76cc9e6c4e6b3691d4ee1351d3ef0177d064ca890ac5d134a7d2b7f6

Description

Published: 11 Oct 2023

README

melange-testing-library

Initially forked from @wyze/bs-dom-testing-library and @wyze/bs-react-testing-library.

Install

Install opam package manager.

Then:

opam pin add melange-testing-library.dev git+https://github.com/melange-community/melange-testing-library.git#main

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

  "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:

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

Dependencies (4)

  1. reason-react
  2. melange >= "2.0.0"
  3. ocaml
  4. dune >= "3.8"

Dev Dependencies (1)

  1. odoc with-doc

Conflicts

None

OCaml

Innovation. Community. Security.