Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit e70df4d

Browse files
authored
Update readme.md
1 parent 4ac7cc6 commit e70df4d

File tree

1 file changed

+14
-27
lines changed

1 file changed

+14
-27
lines changed

readme.md

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# bs-react-testing-library · [![Build Status][actions-image]][actions-url] [![npm][npm-image]][npm-url] [![Codecov][codecov-image]][codecov-url]
1+
# @rescriptbr/react-testing-library ·
22

3-
> [BuckleScript](//github.com/BuckleScript/bucklescript) bindings for [react-testing-library](//github.com/kentcdodds/react-testing-library).
3+
> [ReScript](https://rescript-lang.org) bindings for [react-testing-library](https://github.com/testing-library/react-testing-library).
44
55
## Documentation
66

7-
[**Read the docs**](//testing-library.com/docs/bs-react-testing-library/intro) | [Edit the docs](//github.com/alexkrolick/testing-library-docs)
7+
The documentions is WIP, see [`src/__tests__`](src/__tests__) for some examples.
88

99
## Installation
1010

1111
```sh
12-
$ yarn add --dev bs-react-testing-library
12+
$ yarn add --dev @rescriptbr/react-testing-library
1313

1414
# or..
1515

16-
$ npm install --save-dev bs-react-testing-library
16+
$ npm install --save-dev @rescriptbr/react-testing-library
1717
```
1818

1919
## Usage
@@ -23,29 +23,29 @@ $ npm install --save-dev bs-react-testing-library
2323
```json
2424
{
2525
"bs-dev-dependencies": [
26-
"bs-react-testing-library"
26+
"@rescriptbr/react-testing-library"
2727
]
2828
}
2929
```
3030

3131
#### With [`bs-jest`](//github.com/glennsl/bs-jest)
3232

3333
```ocaml
34-
/* Component_test.re */
34+
/* Component_Test.res */
3535
36-
open Jest;
37-
open Expect;
38-
open ReactTestingLibrary;
36+
open Jest
37+
open Expect
38+
open ReactTestingLibrary
3939
4040
test("Component renders", () =>
41-
<div style=ReactDOMRe.Style.make(~color="rebeccapurple", ())>
42-
<h1> {ReasonReact.string("Heading")} </h1>
41+
<div style=ReactDOM.Style.make(~color="rebeccapurple", ())>
42+
<h1> {React.string("Heading")} </h1>
4343
</div>
4444
|> render
4545
|> container
4646
|> expect
4747
|> toMatchSnapshot
48-
);
48+
)
4949
```
5050

5151
## Examples
@@ -76,20 +76,7 @@ $ yarn test
7676

7777
> [Full Change Log](changelog.md)
7878
79-
### [v0.8.0](https://github.com/wyze/bs-react-testing-library/releases/tag/v0.8.0) (2020-10-21)
80-
81-
* Upgrade to latest dependencies ([@wyze](https://github.com/wyze) in [#27](https://github.com/wyze/bs-react-testing-library/pull/27))
82-
* Add sponsor button ([@wyze](https://github.com/wyze) in [c69f028](https://github.com/wyze/bs-react-testing-library/commit/c69f028))
83-
8479
## License
8580

86-
MIT © [Neil Kistner](https://neilkistner.com)
87-
88-
[actions-image]: https://img.shields.io/github/workflow/status/wyze/bs-react-testing-library/CI.svg?style=flat-square
89-
[actions-url]: https://github.com/wyze/bs-react-testing-library/actions
90-
91-
[npm-image]: https://img.shields.io/npm/v/bs-react-testing-library.svg?style=flat-square
92-
[npm-url]: https://npm.im/bs-react-testing-library
81+
MIT ©
9382

94-
[codecov-image]: https://img.shields.io/codecov/c/github/wyze/bs-react-testing-library.svg?style=flat-square
95-
[codecov-url]: https://codecov.io/github/wyze/bs-react-testing-library

0 commit comments

Comments
 (0)