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

Commit 08221ff

Browse files
jihchiwyze
andauthored
Upgrade underlaying library (#13)
* Upgrade bs-dom-testing-library to 0.6.0 and @testing-library/react to 10 * Complete render options binding * Add maxLengthToPrint argument to debug * Add support for asFragment * Add supports for all "getBy" queries * Remove duplicated namespace * Add a shim for mutation observer * Add supports for all variants of ByText query * Add supports for all variants of ByPlaceholderText query * Add supports for all variants of remaining query * Upgrade to latest bs-dom-testing-library Co-authored-by: Neil Kistner <neil.kistner@gmail.com>
1 parent 666581a commit 08221ff

File tree

7 files changed

+2696
-145
lines changed

7 files changed

+2696
-145
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": {
77
"name": "Neil Kistner",
88
"email": "neil.kistner@gmail.com",
9-
"url": "neilkistner.com"
9+
"url": "https://neilkistner.com"
1010
},
1111
"license": "MIT",
1212
"files": [
@@ -19,7 +19,7 @@
1919
"clean": "run-p clean:*",
2020
"clean:bsb": "bsb -clean-world",
2121
"clean:project": "rimraf lib .merlin",
22-
"jest": "jest",
22+
"jest": "jest --setupTestFrameworkScriptFile=./setupTests.js",
2323
"postversion": "github-release",
2424
"prebuild": "yarn clean",
2525
"pretest": "yarn build",
@@ -33,14 +33,15 @@
3333
"testing"
3434
],
3535
"dependencies": {
36-
"@testing-library/react": "^8.0.5",
37-
"bs-dom-testing-library": "^0.5.0"
36+
"@testing-library/react": "^10.0.1",
37+
"bs-dom-testing-library": "^0.6.1"
3838
},
3939
"peerDependencies": {
4040
"reason-react": "< 0.8.0"
4141
},
4242
"devDependencies": {
4343
"@glennsl/bs-jest": "^0.4.8",
44+
"@sheerun/mutationobserver-shim": "^0.3.3",
4445
"@wyze/changelog": "^1.0.0",
4546
"@wyze/github-release": "^1.0.0",
4647
"bs-platform": "^5.0.6",

setupTests.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const MutationObserver = require('@sheerun/mutationobserver-shim');
2+
3+
window.MutationObserver = MutationObserver;

0 commit comments

Comments
 (0)