Skip to content

Commit

Permalink
Upgrade dependencies and expose FireEvent from bs-dom-testing-library
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Oct 11, 2018
1 parent 0998275 commit 7b23502
Show file tree
Hide file tree
Showing 5 changed files with 665 additions and 36 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@
"testing"
],
"dependencies": {
"bs-dom-testing-library": "^0.2.0",
"react-testing-library": "^5.0.1"
"bs-dom-testing-library": "^0.3.0",
"react-testing-library": "^5.2.0"
},
"peerDependencies": {
"reason-react": "< 0.6.0"
},
"devDependencies": {
"bs-jest": "^0.3.2",
"bs-platform": "^4.0.5",
"bs-platform": "^4.0.6",
"npm-run-all": "^4.1.3",
"react": "^16.5.1",
"react-dom": "^16.5.1",
"react": "^16.5.2",
"react-dom": "^16.5.2",
"reason-react": "^0.5.3",
"rimraf": "^2.6.2",
"write-changelog": "^1.2.0"
Expand Down
2 changes: 2 additions & 0 deletions src/ReactTestingLibrary.re
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ module Simulate = {
external click : Dom.element => unit = "";
};

module FireEvent = DomTestingLibrary.FireEvent;

type renderResult;
type renderOptions = {
.
Expand Down
2 changes: 2 additions & 0 deletions src/ReactTestingLibrary.rei
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module Simulate: {
external click : Dom.element => unit = "";
};

module FireEvent = DomTestingLibrary.FireEvent;

type renderResult;
type renderOptions = {
.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ exports[`ReactTestingLibrary getByTestId works 1`] = `

exports[`ReactTestingLibrary render works 1`] = `
Object {
"asFragment": [Function],
"baseElement": <body>
<div>
<div>
Expand All @@ -34,27 +35,35 @@ Object {
"getAllByAltText": [Function],
"getAllByLabelText": [Function],
"getAllByPlaceholderText": [Function],
"getAllByRole": [Function],
"getAllBySelectText": [Function],
"getAllByTestId": [Function],
"getAllByText": [Function],
"getAllByTitle": [Function],
"getAllByValue": [Function],
"getByAltText": [Function],
"getByLabelText": [Function],
"getByPlaceholderText": [Function],
"getByRole": [Function],
"getBySelectText": [Function],
"getByTestId": [Function],
"getByText": [Function],
"getByTitle": [Function],
"getByValue": [Function],
"queryAllByAltText": [Function],
"queryAllByLabelText": [Function],
"queryAllByPlaceholderText": [Function],
"queryAllByRole": [Function],
"queryAllBySelectText": [Function],
"queryAllByTestId": [Function],
"queryAllByText": [Function],
"queryAllByTitle": [Function],
"queryAllByValue": [Function],
"queryByAltText": [Function],
"queryByLabelText": [Function],
"queryByPlaceholderText": [Function],
"queryByRole": [Function],
"queryBySelectText": [Function],
"queryByTestId": [Function],
"queryByText": [Function],
"queryByTitle": [Function],
Expand Down
Loading

0 comments on commit 7b23502

Please sign in to comment.