package melange-testing-library

  1. Overview
  2. Docs
On This Page
  1. Install
  2. Setup
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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)
; ...
OCaml

Innovation. Community. Security.