Skip to content

Commit cd924da

Browse files
committed
Upgrade dependencies
1 parent 3342cac commit cd924da

5 files changed

+1456
-1760
lines changed

bsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"reason-react"
1919
],
2020
"bs-dev-dependencies": [
21-
"bs-jest"
21+
"@glennsl/bs-jest"
2222
],
2323
"sources": [
2424
{

package.json

+13-11
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,34 @@
2020
"clean:bsb": "bsb -clean-world",
2121
"clean:project": "rimraf lib .merlin",
2222
"jest": "jest",
23+
"postversion": "github-release",
2324
"prebuild": "yarn clean",
2425
"pretest": "yarn build",
2526
"preversion": "yarn build",
2627
"test": "yarn jest",
27-
"version": "write-changelog"
28+
"version": "changelog"
2829
},
2930
"keywords": [
3031
"bucklescript",
3132
"react",
3233
"testing"
3334
],
3435
"dependencies": {
35-
"bs-dom-testing-library": "^0.3.0",
36+
"bs-dom-testing-library": "^0.4.1",
3637
"react-testing-library": "^5.2.0"
3738
},
3839
"peerDependencies": {
39-
"reason-react": "< 0.6.0"
40+
"reason-react": "< 0.8.0"
4041
},
4142
"devDependencies": {
42-
"bs-jest": "^0.3.2",
43-
"bs-platform": "^4.0.6",
44-
"npm-run-all": "^4.1.3",
45-
"react": "^16.5.2",
46-
"react-dom": "^16.5.2",
47-
"reason-react": "^0.5.3",
48-
"rimraf": "^2.6.2",
49-
"write-changelog": "^1.2.0"
43+
"@glennsl/bs-jest": "^0.4.8",
44+
"@wyze/changelog": "^1.0.0",
45+
"@wyze/github-release": "^1.0.0",
46+
"bs-platform": "^5.0.3",
47+
"npm-run-all": "^4.1.5",
48+
"react": "^16.8.6",
49+
"react-dom": "^16.8.6",
50+
"reason-react": "^0.7.0",
51+
"rimraf": "^2.6.3"
5052
}
5153
}

src/ReactTestingLibrary.re

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ let getByTestId = (string, result) =>
3939
let getByText = (~matcher, ~options=?, result) =>
4040
getByText(~matcher, ~options=?options, result |> container);
4141

42+
let getByLabelText = (~matcher, ~options=?, result) =>
43+
getByLabelText(~matcher, ~options=?options, result |> container);
44+
4245
let getByTitle = (string, result) => getByTitle(string, result |> container);
4346

4447
let getByValue = (string, result) => getByValue(string, result |> container);

src/ReactTestingLibrary.rei

+12
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ let getByText:
3333
) =>
3434
Dom.element;
3535

36+
let getByLabelText:
37+
(
38+
~matcher: [
39+
| `Func((string, Dom.element) => bool)
40+
| `RegExp(Js.Re.t)
41+
| `Str(string)
42+
],
43+
~options: DomTestingLibrary.Query.options=?,
44+
renderResult
45+
) =>
46+
Dom.element;
47+
3648
let getByTitle: (string, renderResult) => Dom.element;
3749

3850
let getByValue: (string, renderResult) => Dom.element;

0 commit comments

Comments
 (0)