| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ReScript bindings for react-testing-library.
The documentation is WIP, see src/__tests__ for some examples.
$ yarn add --dev @rescriptbr/react-testing-library
# or..
$ npm install --save-dev @rescriptbr/react-testing-library{
"bs-dev-dependencies": [
"@rescriptbr/react-testing-library"
]
}open Jest
open Expect
open ReactTestingLibrary
test("Component renders", () =>
<div style=ReactDOM.Style.make(~color="rebeccapurple", ())>
<h1> {React.string("Heading")} </h1>
</div>
|> render
|> container
|> expect
|> toMatchSnapshot
)See src/__tests__ for some examples.
$ git clone https://github.com/wyze/bs-react-testing-library.git
$ cd bs-react-testing-library
$ yarn # or `npm install`$ yarn build$ yarn testSee CREDITS.md
MIT ©
| Back | FazBrowse Home | New Git URL |