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

Commit ff3d2d4

Browse files
authored
Upgrade to latest dependencies (#27)
1 parent c69f028 commit ff3d2d4

File tree

5 files changed

+157
-204
lines changed

5 files changed

+157
-204
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"testing"
3535
],
3636
"dependencies": {
37-
"@testing-library/react": "^10.0.2",
38-
"bs-dom-testing-library": "^0.6.2"
37+
"@testing-library/react": "^11.1.0",
38+
"bs-dom-testing-library": "^0.7.0"
3939
},
4040
"peerDependencies": {
4141
"reason-react": "< 0.8.0"
@@ -45,12 +45,12 @@
4545
"@sheerun/mutationobserver-shim": "^0.3.3",
4646
"@wyze/changelog": "^1.0.0",
4747
"@wyze/github-release": "^1.1.1",
48-
"bisect_ppx": "^2.3.0",
49-
"bs-platform": "^7.2.2",
48+
"bisect_ppx": "^2.5.0",
49+
"bs-platform": "^8.3.1",
5050
"npm-run-all": "^4.1.5",
51-
"react": "^16.13.1",
52-
"react-dom": "^16.13.1",
53-
"reason-react": "^0.7.0",
51+
"react": "^17.0.0",
52+
"react-dom": "^17.0.0",
53+
"reason-react": "^0.9.1",
5454
"rimraf": "^3.0.2"
5555
}
5656
}

src/ReactTestingLibrary.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type renderOptions = {
1616
};
1717

1818
[@bs.module "@testing-library/react"]
19-
external cleanup: unit => Js.Promise.t(unit) = "cleanup";
19+
external cleanup: unit => unit = "cleanup";
2020

2121
[@bs.module "@testing-library/react"]
2222
external _act: (unit => Js.undefined(Js.Promise.t('a))) => unit = "act";

src/ReactTestingLibrary.rei

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type renderOptions = {
8484
};
8585

8686
[@bs.module "@testing-library/react"]
87-
external cleanup: unit => Js.Promise.t(unit) = "cleanup";
87+
external cleanup: unit => unit = "cleanup";
8888

8989
let act: (unit => unit) => unit;
9090

src/__tests__/ReactTestingLibrary_test.re

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -690,16 +690,13 @@ describe("ReactTestingLibrary", () => {
690690
testPromise("Cleaunp, (element not found)", () => {
691691
let result = element |> render;
692692

693-
cleanup()
694-
|> Js.Promise.(
695-
then_(_ => {
696-
Js.Promise.resolve(
697-
result
698-
|> queryByTestId(~matcher=`Str("h1-heading"))
699-
|> expect
700-
|> toMatchSnapshot,
701-
)
702-
})
703-
);
693+
cleanup();
694+
695+
Js.Promise.resolve(
696+
result
697+
|> queryByTestId(~matcher=`Str("h1-heading"))
698+
|> expect
699+
|> toMatchSnapshot,
700+
);
704701
});
705702
});

0 commit comments

Comments
 (0)