Skip to content

Commit

Permalink
Upgrade devDependencies to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Apr 11, 2020
1 parent 08221ff commit b4705a9
Show file tree
Hide file tree
Showing 5 changed files with 1,850 additions and 1,596 deletions.
6 changes: 5 additions & 1 deletion bsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"-bs-no-version-header",
"-bs-super-errors"
],
"warnings": {
"number": "+A-48-42",
"error": "+A-3-44-102"
},
"reason": {
"react-jsx": 2
"react-jsx": 3
},
"refmt": 3,
"package-specs": {
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@
"testing"
],
"dependencies": {
"@testing-library/react": "^10.0.1",
"@testing-library/react": "^10.0.2",
"bs-dom-testing-library": "^0.6.1"
},
"peerDependencies": {
"reason-react": "< 0.8.0"
},
"devDependencies": {
"@glennsl/bs-jest": "^0.4.8",
"@glennsl/bs-jest": "^0.5.1",
"@sheerun/mutationobserver-shim": "^0.3.3",
"@wyze/changelog": "^1.0.0",
"@wyze/github-release": "^1.0.0",
"bs-platform": "^5.0.6",
"@wyze/github-release": "^1.1.1",
"bs-platform": "^7.2.2",
"npm-run-all": "^4.1.5",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"reason-react": "^0.7.0",
"rimraf": "^2.6.3"
"rimraf": "^3.0.2"
}
}
24 changes: 4 additions & 20 deletions src/__tests__/ReactTestingLibrary_test.re
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
open Jest;

module Test = {
let component = ReasonReact.statelessComponent("Test");

let make = (~spy, _) => {
...component,
willUnmount: _ => {
spy();
},
render: _ => <div />,
};
};

module Greeting = {
let component = ReasonReact.statelessComponent("Greeting");

let make = (~message, _) => {
...component,
render: _ => <div> {ReasonReact.string(message)} </div>,
};
[@react.component]
let make = (~message) => <div> {ReasonReact.string(message)} </div>;
};

external unsafeAsElement: Dom.node => Dom.element = "%identity";
Expand Down Expand Up @@ -621,13 +605,13 @@ describe("ReactTestingLibrary", () => {
let result = element |> render;
let el = result |> container |> firstChild |> unsafeAsElement;

let _ = result |> debug(~el, ~maxLengthToPrint=10, ());
let _ = result |> debug(~el, ~maxLengthToPrint=25, ());

let _ = [%raw {|expect(console.log).toHaveBeenCalledTimes(1)|}];
let _ = [%raw
{|
expect(console.log).toHaveBeenCalledWith(
expect.stringContaining('<div>...')
expect.stringContaining('sty...')
)
|}
];
Expand Down
12 changes: 9 additions & 3 deletions src/__tests__/__snapshots__/ReactTestingLibrary_test.bs.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ exports[`ReactTestingLibrary ByTitle queryByTitle works 1`] = `

exports[`ReactTestingLibrary asFragment works 1`] = `
<DocumentFragment>
<div>
<div
style="color: rebeccapurple;"
>
<h1
data-testid="h1-heading"
>
Expand All @@ -417,7 +419,9 @@ Object {
"asFragment": [Function],
"baseElement": <body>
<div>
<div>
<div
style="color: rebeccapurple;"
>
<h1
data-testid="h1-heading"
>
Expand All @@ -427,7 +431,9 @@ Object {
</div>
</body>,
"container": <div>
<div>
<div
style="color: rebeccapurple;"
>
<h1
data-testid="h1-heading"
>
Expand Down
Loading

0 comments on commit b4705a9

Please sign in to comment.