Skip to content

Commit b034f72

Browse files
authored
ci: use @testing-library/react@alpha only for React v18 (#807)
* ci: use @testing-library/react@alpha only for React v18 * chore: run prettier
1 parent c2b0d4a commit b034f72

File tree

3 files changed

+27
-48
lines changed

3 files changed

+27
-48
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
cache: 'npm'
2727
- run: yarn
2828
- run: yarn add react@${{ matrix.REACT_DIST }} react-dom@${{ matrix.REACT_DIST }}
29+
- run: yarn add @testing-library/react@alpha
30+
if: matrix.REACT_DIST == 'next'
2931
- run: yarn --cwd www
3032
# Test whether the web page can be built successfully or not
3133
- run: yarn --cwd www build

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"@semantic-release/npm": "^7.0.5",
8181
"@storybook/addon-actions": "^6.3.4",
8282
"@storybook/react": "^6.3.4",
83-
"@testing-library/react": "alpha",
83+
"@testing-library/react": "^12.1.4",
8484
"@typescript-eslint/eslint-plugin": "^4.26.1",
8585
"astroturf": "^0.10.4",
8686
"babel-eslint": "^10.1.0",

yarn.lock

Lines changed: 24 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,17 +2320,6 @@
23202320
"@types/yargs" "^15.0.0"
23212321
chalk "^3.0.0"
23222322

2323-
"@jest/types@^27.2.5":
2324-
version "27.2.5"
2325-
resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.2.5.tgz#420765c052605e75686982d24b061b4cbba22132"
2326-
integrity sha512-nmuM4VuDtCZcY+eTpw+0nvstwReMsjPoj7ZR80/BbixulhLaiX+fbv8oeLW8WZlJMcsGQsTmMKT/iTZu1Uy/lQ==
2327-
dependencies:
2328-
"@types/istanbul-lib-coverage" "^2.0.0"
2329-
"@types/istanbul-reports" "^3.0.0"
2330-
"@types/node" "*"
2331-
"@types/yargs" "^16.0.0"
2332-
chalk "^4.0.0"
2333-
23342323
"@jimp/bmp@^0.16.1":
23352324
version "0.16.1"
23362325
resolved "https://registry.yarnpkg.com/@jimp/bmp/-/bmp-0.16.1.tgz#6e2da655b2ba22e721df0795423f34e92ef13768"
@@ -3503,10 +3492,10 @@
35033492
resolve-from "^5.0.0"
35043493
store2 "^2.12.0"
35053494

3506-
"@testing-library/dom@^8.5.0":
3507-
version "8.11.2"
3508-
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.11.2.tgz#fc110c665a066c2287be765e4a35ba8dad737015"
3509-
integrity sha512-idsS/cqbYudXcVWngc1PuWNmXs416oBy2g/7Q8QAUREt5Z3MUkAL2XJD7xazLJ6esDfqRDi/ZBxk+OPPXitHRw==
3495+
"@testing-library/dom@^8.0.0":
3496+
version "8.11.3"
3497+
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.11.3.tgz#38fd63cbfe14557021e88982d931e33fb7c1a808"
3498+
integrity sha512-9LId28I+lx70wUiZjLvi1DB/WT2zGOxUh46glrSNMaWVx849kKAluezVzZrXJfTKKoQTmEOutLes/bHg4Bj3aA==
35103499
dependencies:
35113500
"@babel/code-frame" "^7.10.4"
35123501
"@babel/runtime" "^7.12.5"
@@ -3517,13 +3506,14 @@
35173506
lz-string "^1.4.4"
35183507
pretty-format "^27.0.2"
35193508

3520-
"@testing-library/react@alpha":
3521-
version "13.0.0-alpha.5"
3522-
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-13.0.0-alpha.5.tgz#29bfc36b550e2a1025cbebf7254d5a0a46cb58c5"
3523-
integrity sha512-QrxKC/7pTE0ze3wLZNaenGJqsLcbAJL71XqU/ryJTL2pqZBjiJHuxZavl2ZQAxnBQkDQF9oh9my3bKPstWfnhA==
3509+
"@testing-library/react@^12.1.4":
3510+
version "12.1.4"
3511+
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-12.1.4.tgz#09674b117e550af713db3f4ec4c0942aa8bbf2c0"
3512+
integrity sha512-jiPKOm7vyUw311Hn/HlNQ9P8/lHNtArAx0PisXyFixDDvfl8DbD6EUdbshK5eqauvBSvzZd19itqQ9j3nferJA==
35243513
dependencies:
35253514
"@babel/runtime" "^7.12.5"
3526-
"@testing-library/dom" "^8.5.0"
3515+
"@testing-library/dom" "^8.0.0"
3516+
"@types/react-dom" "*"
35273517

35283518
"@tootallnate/once@1":
35293519
version "1.0.0"
@@ -3666,13 +3656,6 @@
36663656
"@types/istanbul-lib-coverage" "*"
36673657
"@types/istanbul-lib-report" "*"
36683658

3669-
"@types/istanbul-reports@^3.0.0":
3670-
version "3.0.1"
3671-
resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff"
3672-
integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==
3673-
dependencies:
3674-
"@types/istanbul-lib-report" "*"
3675-
36763659
"@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.6", "@types/json-schema@^7.0.7":
36773660
version "7.0.7"
36783661
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad"
@@ -3784,6 +3767,13 @@
37843767
dependencies:
37853768
"@types/react" "*"
37863769

3770+
"@types/react-dom@*":
3771+
version "17.0.14"
3772+
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.14.tgz#c8f917156b652ddf807711f5becbd2ab018dea9f"
3773+
integrity sha512-H03xwEP1oXmSfl3iobtmQ/2dHF5aBHr8aUMwyGZya6OW45G+xtdzmq6HkncefiBt5JU8DVyaWl/nWZbjZCnzAQ==
3774+
dependencies:
3775+
"@types/react" "*"
3776+
37873777
37883778
version "11.0.5"
37893779
resolved "https://registry.yarnpkg.com/@types/react-syntax-highlighter/-/react-syntax-highlighter-11.0.5.tgz#0d546261b4021e1f9d85b50401c0a42acb106087"
@@ -3898,13 +3888,6 @@
38983888
dependencies:
38993889
"@types/yargs-parser" "*"
39003890

3901-
"@types/yargs@^16.0.0":
3902-
version "16.0.4"
3903-
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977"
3904-
integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==
3905-
dependencies:
3906-
"@types/yargs-parser" "*"
3907-
39083891
"@typescript-eslint/eslint-plugin@^4.26.1":
39093892
version "4.26.1"
39103893
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.26.1.tgz#b9c7313321cb837e2bf8bebe7acc2220659e67d3"
@@ -7091,9 +7074,9 @@ doctrine@^3.0.0:
70917074
esutils "^2.0.2"
70927075

70937076
dom-accessibility-api@^0.5.9:
7094-
version "0.5.10"
7095-
resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.5.10.tgz#caa6d08f60388d0bb4539dd75fe458a9a1d0014c"
7096-
integrity sha512-Xu9mD0UjrJisTmv7lmVSDMagQcU9R5hwAbxsaAE/35XPnPLJobbuREfV/rraiSaEj/UOvgrzQs66zyTWTlyd+g==
7077+
version "0.5.13"
7078+
resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.5.13.tgz#102ee5f25eacce09bdf1cfa5a298f86da473be4b"
7079+
integrity sha512-R305kwb5CcMDIpSHUnLyIAp7SrSPBx6F0VfQFB3M75xVMHhXJJIdePYgbPPh1o57vCHNu5QztokWUPsLjWzFqw==
70977080

70987081
dom-converter@^0.2:
70997082
version "0.2.0"
@@ -13974,11 +13957,10 @@ pretty-format@^25.3.0:
1397413957
react-is "^16.12.0"
1397513958

1397613959
pretty-format@^27.0.2:
13977-
version "27.3.1"
13978-
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.3.1.tgz#7e9486365ccdd4a502061fa761d3ab9ca1b78df5"
13979-
integrity sha512-DR/c+pvFc52nLimLROYjnXPtolawm+uWDxr4FjuLDLUn+ktWnSN851KoHwHzzqq6rfCOjkzN8FLgDrSub6UDuA==
13960+
version "27.5.1"
13961+
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e"
13962+
integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==
1398013963
dependencies:
13981-
"@jest/types" "^27.2.5"
1398213964
ansi-regex "^5.0.1"
1398313965
ansi-styles "^5.0.0"
1398413966
react-is "^17.0.1"
@@ -14429,12 +14411,7 @@ react-is@^16.12.0, react-is@^16.7.0, react-is@^16.8.1:
1442914411
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
1443014412
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
1443114413

14432-
react-is@^17.0.1:
14433-
version "17.0.1"
14434-
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.1.tgz#5b3531bd76a645a4c9fb6e693ed36419e3301339"
14435-
integrity sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA==
14436-
14437-
react-is@^17.0.2:
14414+
react-is@^17.0.1, react-is@^17.0.2:
1443814415
version "17.0.2"
1443914416
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
1444014417
integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==

0 commit comments

Comments
 (0)