package melange-testing-library
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
README.md.html
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)
; ...
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>