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 · ;
2
2
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) .
4
4
5
5
## Documentation
6
6
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.
8
8
9
9
## Installation
10
10
11
11
``` sh
12
- $ yarn add --dev bs- react-testing-library
12
+ $ yarn add --dev @rescriptbr/ react-testing-library
13
13
14
14
# or..
15
15
16
- $ npm install --save-dev bs- react-testing-library
16
+ $ npm install --save-dev @rescriptbr/ react-testing-library
17
17
```
18
18
19
19
## Usage
@@ -23,29 +23,29 @@ $ npm install --save-dev bs-react-testing-library
23
23
``` json
24
24
{
25
25
"bs-dev-dependencies" : [
26
- " bs- react-testing-library"
26
+ " @rescriptbr/ react-testing-library"
27
27
]
28
28
}
29
29
```
30
30
31
31
#### With [ ` bs-jest ` ] ( //github.com/glennsl/bs-jest )
32
32
33
33
``` ocaml
34
- /* Component_test.re */
34
+ /* Component_Test.res */
35
35
36
- open Jest;
37
- open Expect;
38
- open ReactTestingLibrary;
36
+ open Jest
37
+ open Expect
38
+ open ReactTestingLibrary
39
39
40
40
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>
43
43
</div>
44
44
|> render
45
45
|> container
46
46
|> expect
47
47
|> toMatchSnapshot
48
- );
48
+ )
49
49
```
50
50
51
51
## Examples
@@ -76,20 +76,7 @@ $ yarn test
76
76
77
77
> [ Full Change Log] ( changelog.md )
78
78
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
-
84
79
## License
85
80
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 ©
93
82
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