Skip to content

Commit 7b23502

Browse files
committed
Upgrade dependencies and expose FireEvent from bs-dom-testing-library
1 parent 0998275 commit 7b23502

File tree

5 files changed

+665
-36
lines changed

5 files changed

+665
-36
lines changed

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@
3232
"testing"
3333
],
3434
"dependencies": {
35-
"bs-dom-testing-library": "^0.2.0",
36-
"react-testing-library": "^5.0.1"
35+
"bs-dom-testing-library": "^0.3.0",
36+
"react-testing-library": "^5.2.0"
3737
},
3838
"peerDependencies": {
3939
"reason-react": "< 0.6.0"
4040
},
4141
"devDependencies": {
4242
"bs-jest": "^0.3.2",
43-
"bs-platform": "^4.0.5",
43+
"bs-platform": "^4.0.6",
4444
"npm-run-all": "^4.1.3",
45-
"react": "^16.5.1",
46-
"react-dom": "^16.5.1",
45+
"react": "^16.5.2",
46+
"react-dom": "^16.5.2",
4747
"reason-react": "^0.5.3",
4848
"rimraf": "^2.6.2",
4949
"write-changelog": "^1.2.0"

src/ReactTestingLibrary.re

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ module Simulate = {
55
external click : Dom.element => unit = "";
66
};
77

8+
module FireEvent = DomTestingLibrary.FireEvent;
9+
810
type renderResult;
911
type renderOptions = {
1012
.

src/ReactTestingLibrary.rei

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ module Simulate: {
33
external click : Dom.element => unit = "";
44
};
55

6+
module FireEvent = DomTestingLibrary.FireEvent;
7+
68
type renderResult;
79
type renderOptions = {
810
.

src/__tests__/__snapshots__/ReactTestingLibrary_test.bs.js.snap

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ exports[`ReactTestingLibrary getByTestId works 1`] = `
1010

1111
exports[`ReactTestingLibrary render works 1`] = `
1212
Object {
13+
"asFragment": [Function],
1314
"baseElement": <body>
1415
<div>
1516
<div>
@@ -34,27 +35,35 @@ Object {
3435
"getAllByAltText": [Function],
3536
"getAllByLabelText": [Function],
3637
"getAllByPlaceholderText": [Function],
38+
"getAllByRole": [Function],
39+
"getAllBySelectText": [Function],
3740
"getAllByTestId": [Function],
3841
"getAllByText": [Function],
3942
"getAllByTitle": [Function],
4043
"getAllByValue": [Function],
4144
"getByAltText": [Function],
4245
"getByLabelText": [Function],
4346
"getByPlaceholderText": [Function],
47+
"getByRole": [Function],
48+
"getBySelectText": [Function],
4449
"getByTestId": [Function],
4550
"getByText": [Function],
4651
"getByTitle": [Function],
4752
"getByValue": [Function],
4853
"queryAllByAltText": [Function],
4954
"queryAllByLabelText": [Function],
5055
"queryAllByPlaceholderText": [Function],
56+
"queryAllByRole": [Function],
57+
"queryAllBySelectText": [Function],
5158
"queryAllByTestId": [Function],
5259
"queryAllByText": [Function],
5360
"queryAllByTitle": [Function],
5461
"queryAllByValue": [Function],
5562
"queryByAltText": [Function],
5663
"queryByLabelText": [Function],
5764
"queryByPlaceholderText": [Function],
65+
"queryByRole": [Function],
66+
"queryBySelectText": [Function],
5867
"queryByTestId": [Function],
5968
"queryByText": [Function],
6069
"queryByTitle": [Function],

0 commit comments

Comments
 (0)