ReScript bindings for react-testing-library
npm install @rescriptbr/react-testing-library> ReScript bindings for react-testing-library.
The documentions is WIP, see src/__tests__ for some examples.
``sh
$ yarn add --dev @rescriptbr/react-testing-library
$ npm install --save-dev @rescriptbr/react-testing-library
`
#### Add to bsconfig.json
`json`
{
"bs-dev-dependencies": [
"@rescriptbr/react-testing-library"
]
}
#### With bs-jest
`ocaml
open Jest
open Expect
open ReactTestingLibrary
test("Component renders", () =>
Examples
src/__tests__ for some examples.Development
`sh
$ git clone https://github.com/wyze/bs-react-testing-library.git
$ cd bs-react-testing-library
$ yarn # or npm install
`Build
`sh
$ yarn build
`Test
`sh
$ yarn test
``* Fix package version (@vmarcosp in 5ad5ce0)
* Updating changelog (@vmarcosp in d6b6178)
* Update readme.md (@vmarcosp in 40b2af2)
* Update ci.yml (@vmarcosp in ddf3986)
* Update readme.md (@vmarcosp in e70df4d)
* Updating deno version on ci (@vmarcosp in 4ac7cc6)
* Removing unused files (@vmarcosp in 3b0c09f)
* Migrating from reason syntax to rescript and reason-react to @rescript/react (@vmarcosp in f77a430)
MIT ©