ReScript bindings for react-testing-library.
npm install @tomvardasca/rescript-react-testing-library> ReScript bindings for react-testing-library.
``sh
$ yarn add --dev @tomvardasca/rescript-react-testing-library
$ npm install --save-dev @tomvardasca/rescript-react-testing-library
`
#### Add to bsconfig.json
`json`
{
"bs-dev-dependencies": [
"@tomvardasca/rescript-react-testing-library"
]
}
#### With bs-jest
`ocaml
/ Component_test.re /
open Jest;
open Expect;
open ReactTestingLibrary;
test("Component renders", () =>
Examples
src/__tests__ for some examples.Development
`sh
$ git clone https://github.com/tomvardasca/rescript-react-testing-library.git
$ cd rescript-react-testing-library
$ yarn # or npm install
`Build
`sh
$ yarn build
`Test
`sh
$ yarn test
``* Update readme.md (@tomvardasca in 1337603)
* Update readme credits (@tomvardasca in 3d89f55)
MIT © Neil Kistner and Tomé Vardasca
This is a fork of the great work from Neil Kistner on bs-react-testing-library
[actions-image]: https://img.shields.io/github/workflow/status/tomvardasca/rescript-react-testing-library/CI.svg?style=flat-square
[actions-url]: https://github.com/tomvardasca/rescript-react-testing-library/actions
[npm-image]: https://img.shields.io/npm/v/rescript-react-testing-library.svg?style=flat-square
[npm-url]: https://npm.im/@tomvardasca/rescript-react-testing-library
[codecov-image]: https://img.shields.io/codecov/c/github/tomvardasca/rescript-react-testing-library.svg?style=flat-square
[codecov-url]: https://codecov.io/github/tomvardasca/rescript-react-testing-library