Skip to content

Commit

Permalink
Upgrade react testing library (#9360)
Browse files Browse the repository at this point in the history
Upgrades `react-testing-library` to the latest version, also moved it to a `devDependency` in the `gatsby-image` package. 

Removes the `ric` package from `gatsby-link`, since it's not beeing used somewhere (?)
  • Loading branch information
alexandernanberg authored and DSchau committed Oct 24, 2018
1 parent 6dce54a commit 5035d3a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 37 deletions.
6 changes: 3 additions & 3 deletions packages/gatsby-image/package.json
Expand Up @@ -8,13 +8,13 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"prop-types": "^15.6.1",
"react-testing-library": "^4.1.7"
"prop-types": "^15.6.1"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"cross-env": "^5.1.4"
"cross-env": "^5.1.4",
"react-testing-library": "^5.0.0"
},
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image#readme",
"keywords": [
Expand Down
5 changes: 2 additions & 3 deletions packages/gatsby-link/package.json
Expand Up @@ -10,14 +10,13 @@
"@babel/runtime": "^7.0.0",
"@reach/router": "^1.1.1",
"@types/reach__router": "^1.0.0",
"prop-types": "^15.6.1",
"ric": "^1.3.0"
"prop-types": "^15.6.1"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"cross-env": "^5.1.4",
"react-testing-library": "^4.1.7"
"react-testing-library": "^5.0.0"
},
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-link#readme",
"keywords": [
Expand Down
48 changes: 17 additions & 31 deletions yarn.lock
Expand Up @@ -1644,6 +1644,11 @@
react-lifecycles-compat "^3.0.4"
warning "^3.0.0"

"@sheerun/mutationobserver-shim@^0.3.2":
version "0.3.2"
resolved "https://registry.yarnpkg.com/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.2.tgz#8013f2af54a2b7d735f71560ff360d3a8176a87b"
integrity sha512-vTCdPp/T/Q3oSqwHmZ5Kpa9oI7iLtGl3RQaA/NyLHikvcrPxACkkKVr/XzkSPJWXHRhKGzVvb0urJsbMlRxi1Q==

"@sindresorhus/is@^0.7.0":
version "0.7.0"
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd"
Expand Down Expand Up @@ -6603,13 +6608,13 @@ dom-serializer@0, dom-serializer@~0.1.0:
domelementtype "~1.1.1"
entities "~1.1.1"

dom-testing-library@^3.1.0:
version "3.5.1"
resolved "https://registry.yarnpkg.com/dom-testing-library/-/dom-testing-library-3.5.1.tgz#980cabd123ae7744ec430b669ad1ddcd1f8cbb9e"
integrity sha512-+oJbP7WWtNnlImFHwY4BiRwh+geHhi7ZATrGqCSpb5Qlur1FankoBj5IRHvfeMpSs17ZangIhJHMFnLGPg4YOQ==
dom-testing-library@^3.9.0:
version "3.11.2"
resolved "https://registry.yarnpkg.com/dom-testing-library/-/dom-testing-library-3.11.2.tgz#11ecb840641f89fbbdcf8cc625009c24e7779615"
integrity sha512-4p3q+nQjjmvNzUMef23mqiAgzw1dVUVJmjErHGENZ3N4EKSNHmKMDTFvYCZALJP1WRNw13LLwD136dWFM7jKYg==
dependencies:
mutationobserver-shim "^0.3.2"
pretty-format "^22.4.3"
"@sheerun/mutationobserver-shim" "^0.3.2"
pretty-format "^23.6.0"
wait-for-expect "^1.0.0"

dom-urls@^1.1.0:
Expand Down Expand Up @@ -12912,11 +12917,6 @@ multipipe@^0.1.2:
dependencies:
duplexer2 "0.0.2"

mutationobserver-shim@^0.3.2:
version "0.3.2"
resolved "https://registry.yarnpkg.com/mutationobserver-shim/-/mutationobserver-shim-0.3.2.tgz#f4d5dae7a4971a2207914fb5a90ebd514b65acca"
integrity sha1-9NXa56SXGiIHkU+1qQ69UUtlrMo=

mute-stream@0.0.7, mute-stream@~0.0.4:
version "0.0.7"
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
Expand Down Expand Up @@ -14946,15 +14946,7 @@ pretty-error@^2.0.2, pretty-error@^2.1.1:
renderkid "^2.0.1"
utila "~0.4"

pretty-format@^22.4.3:
version "22.4.3"
resolved "http://registry.npmjs.org/pretty-format/-/pretty-format-22.4.3.tgz#f873d780839a9c02e9664c8a082e9ee79eaac16f"
integrity sha512-S4oT9/sT6MN7/3COoOy+ZJeA92VmOnveLHgrwBE3Z1W5N9S2A1QGNYiE1z75DAENbJrXXUb+OWXhpJcg05QKQQ==
dependencies:
ansi-regex "^3.0.0"
ansi-styles "^3.2.0"

pretty-format@^23.0.1:
pretty-format@^23.0.1, pretty-format@^23.6.0:
version "23.6.0"
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.6.0.tgz#5eaac8eeb6b33b987b7fe6097ea6a8a146ab5760"
integrity sha512-zf9NV1NSlDLDjycnwm6hpFATCGl/K1lt0R/GdkAK2O5LN/rwJoB+Mh93gGJjut4YbmecbfgLWVGSTCr0Ewvvbw==
Expand Down Expand Up @@ -15409,13 +15401,12 @@ react-lifecycles-compat@^3.0.4:
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==

react-testing-library@^4.1.7:
version "4.1.9"
resolved "https://registry.yarnpkg.com/react-testing-library/-/react-testing-library-4.1.9.tgz#a96fe41fd2a6205d6a2029604f46df18b9cda2d2"
integrity sha512-RBttOeFQg/p+PRc7CTcTxI9fmRwed8q6rdU1gaforp2hB899X0M6hL4vBfjJ8Vmova6juM9jTuR5x6/wbqOv9g==
react-testing-library@^5.0.0:
version "5.2.1"
resolved "https://registry.yarnpkg.com/react-testing-library/-/react-testing-library-5.2.1.tgz#31f163e900457e5c0dcff7669ae06b502f8a9a7a"
integrity sha512-UNOWuWWFkqKvvIfnVK9JH9hMHk9Xd7G8Bl0F5zdxJJIhdcakKX2I0w+6SSIgI+Ru3UYDDVqgQTW2Zu1fc2PH8w==
dependencies:
dom-testing-library "^3.1.0"
wait-for-expect "^1.0.0"
dom-testing-library "^3.9.0"

react@^16.4.1:
version "16.5.1"
Expand Down Expand Up @@ -16343,11 +16334,6 @@ rgba-regex@^1.0.0:
resolved "https://registry.yarnpkg.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3"
integrity sha1-QzdOLiyglosO8VI0YLfXMP8i7rM=

ric@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/ric/-/ric-1.3.0.tgz#8e95042609ce8213548a83164d08e94fae94909f"
integrity sha1-jpUEJgnOghNUioMWTQjpT66UkJ8=

right-align@^0.1.1:
version "0.1.3"
resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef"
Expand Down

0 comments on commit 5035d3a

Please sign in to comment.