Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump @testing-library/react from 9.5.0 to 10.0.4 #533

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@dhis2/cli-style": "^5.1.0",
"@dhis2/cli-utils-cypress": "^2.2.0",
"@testing-library/jest-dom": "^5.7.0",
"@testing-library/react": "^9.4.0",
"@testing-library/react": "^10.0.4",
"query-string": "^6.11.0"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/components/DataSetPicker/DataSetPicker.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import i18n from '@dhis2/d2-i18n'
import { render, waitForElement, fireEvent } from 'test-utils'
import { render, waitFor, fireEvent } from 'test-utils'
import '@testing-library/jest-dom/extend-expect'
import { CustomDataProvider } from '@dhis2/app-runtime'

Expand Down Expand Up @@ -40,7 +40,7 @@ test('data sets load and are shown in a list', async () => {
expect(loading).toBeInTheDocument()

// loading has finished
await waitForElement(() => getByDataTest('data-set-picker-list'))
await waitFor(() => getByDataTest('data-set-picker-list'))
expect(loading).not.toBeInTheDocument()

const listElements = getAllByDataTest(/data-set-picker-list-body-li-*/)
Expand Down Expand Up @@ -73,7 +73,7 @@ test('data sets fail to load and an error is shown', async () => {
expect(loading).toBeInTheDocument()

// loading has finished
await waitForElement(() =>
await waitFor(() =>
getByText(i18n.t('Something went wrong when loading the data sets!'))
)
expect(loading).not.toBeInTheDocument()
Expand Down
10 changes: 5 additions & 5 deletions src/components/OrgUnitTree/OrgUnitTree.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import i18n from '@dhis2/d2-i18n'
import { render, waitForElement, fireEvent } from 'test-utils'
import { render, waitFor, fireEvent } from 'test-utils'
import '@testing-library/jest-dom/extend-expect'
import { CustomDataProvider } from '@dhis2/app-runtime'

Expand Down Expand Up @@ -75,7 +75,7 @@ test('root organisation units load and are shown', async () => {
expect(loading).toBeInTheDocument()

// loading has finished
await waitForElement(() => getByDataTest('out-tree'))
await waitFor(() => getByDataTest('out-tree'))
expect(loading).not.toBeInTheDocument()

// all root org units are in the document
Expand Down Expand Up @@ -106,7 +106,7 @@ test('child organisation units load and are shown as nodes in the tree', async (
expect(loading).toBeInTheDocument()

// loading has finished
await waitForElement(() => getByDataTest('out-tree'))
await waitFor(() => getByDataTest('out-tree'))
expect(loading).not.toBeInTheDocument()

// clicking on 'Sierre Leone' toggle should trigger a query
Expand All @@ -116,7 +116,7 @@ test('child organisation units load and are shown as nodes in the tree', async (
fireEvent.click(slToggle.firstChild)

const tonkolili = customData.organisationUnits.children[0]
await waitForElement(() => getByDataTest(`out-tree-${tonkolili.path}`))
await waitFor(() => getByDataTest(`out-tree-${tonkolili.path}`))

// // all child org units of Sierra Leone are in the document
customData.organisationUnits.children.forEach(ou => {
Expand All @@ -142,7 +142,7 @@ test('root organisation units fali load and an error is shown', async () => {
expect(loading).toBeInTheDocument()

// loading has finished
await waitForElement(() =>
await waitFor(() =>
getByText(
i18n.t('Something went wrong when loading the organisation units!')
)
Expand Down
6 changes: 3 additions & 3 deletions src/components/ProgramPicker/ProgramPicker.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import i18n from '@dhis2/d2-i18n'
import { render, waitForElement, fireEvent } from 'test-utils'
import { render, waitFor, fireEvent } from 'test-utils'
import '@testing-library/jest-dom/extend-expect'
import { CustomDataProvider } from '@dhis2/app-runtime'

Expand Down Expand Up @@ -41,7 +41,7 @@ test('programs load and are shown in a list', async () => {
expect(loading).toBeInTheDocument()

// loading has finished
await waitForElement(() => getByDataTest('program-picker-list'))
await waitFor(() => getByDataTest('program-picker-list'))
expect(loading).not.toBeInTheDocument()

const listElements = getAllByDataTest(/program-picker-list-body-li-*/)
Expand Down Expand Up @@ -74,7 +74,7 @@ test('programs fail to load and an error is shown', async () => {
expect(loading).toBeInTheDocument()

// loading has finished
await waitForElement(() =>
await waitFor(() =>
getByText(i18n.t('Something went wrong when loading the programs!'))
)
expect(loading).not.toBeInTheDocument()
Expand Down
81 changes: 44 additions & 37 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@
dependencies:
regenerator-runtime "^0.13.2"

"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.3.1", "@babel/runtime@^7.3.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2":
"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.3.1", "@babel/runtime@^7.3.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2", "@babel/runtime@^7.9.6":
version "7.9.6"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.6.tgz#a9102eb5cadedf3f31d08a9ecf294af7827ea29f"
integrity sha512-64AF1xY3OAkFHqOb9s4jpgk1Mm5vDZ4L3acHvAml+53nO1XbXLuDodsVpO4OIUsmemlUHMxNdYMNJmsvOwLrvQ==
Expand Down Expand Up @@ -1743,6 +1743,16 @@
"@types/yargs" "^15.0.0"
chalk "^3.0.0"

"@jest/types@^25.5.0":
version "25.5.0"
resolved "https://registry.yarnpkg.com/@jest/types/-/types-25.5.0.tgz#4d6a4793f7b9599fc3680877b856a97dbccf2a9d"
integrity sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==
dependencies:
"@types/istanbul-lib-coverage" "^2.0.0"
"@types/istanbul-reports" "^1.1.1"
"@types/yargs" "^15.0.0"
chalk "^3.0.0"

"@marionebl/sander@^0.6.0":
version "0.6.1"
resolved "https://registry.yarnpkg.com/@marionebl/sander/-/sander-0.6.1.tgz#1958965874f24bc51be48875feb50d642fc41f7b"
Expand Down Expand Up @@ -1798,11 +1808,6 @@
dependencies:
any-observable "^0.3.0"

"@sheerun/mutationobserver-shim@^0.3.2":
version "0.3.3"
resolved "https://registry.yarnpkg.com/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.3.tgz#5405ee8e444ed212db44e79351f0c70a582aae25"
integrity sha512-DetpxZw1fzPD5xUBrIAoplLChO2VB8DlL5Gg+I1IR9b2wPqYIca2WSUxL5g1vLeR4MsQq1NeWriXAVffV+U1Fw==

"@sindresorhus/is@^0.14.0":
version "0.14.0"
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
Expand Down Expand Up @@ -1918,18 +1923,15 @@
dependencies:
defer-to-connect "^1.0.1"

"@testing-library/dom@^6.15.0":
version "6.15.0"
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-6.15.0.tgz#042abea7b4685b70d9a919100da9024507dc20bb"
integrity sha512-8N24c4XwOigPicwc8n4ECgEoJW2/mMzRJBxu4Uo0zhLERZTbNzqpL5fyCigu7JGUXX+ITuiK4z9/lnHbYRHLwQ==
"@testing-library/dom@^7.2.2":
version "7.5.7"
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-7.5.7.tgz#c4bf683a65083d4a78644588cfa4ad684c113fc7"
integrity sha512-835MiwAxQE7xjSrhpeJbv41UQRmsPJQ0tGfzWiJMdZj2LBbdG5cT8Z44Viv11/XucCmJHr/v8q7VpZnuSimscg==
dependencies:
"@babel/runtime" "^7.8.4"
"@sheerun/mutationobserver-shim" "^0.3.2"
"@types/testing-library__dom" "^6.12.1"
"@babel/runtime" "^7.9.6"
aria-query "^4.0.2"
dom-accessibility-api "^0.3.0"
pretty-format "^25.1.0"
wait-for-expect "^3.0.2"
dom-accessibility-api "^0.4.4"
pretty-format "^25.5.0"

"@testing-library/jest-dom@^5.7.0":
version "5.7.0"
Expand All @@ -1946,14 +1948,14 @@
lodash "^4.17.15"
redent "^3.0.0"

"@testing-library/react@^9.4.0":
version "9.5.0"
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-9.5.0.tgz#71531655a7890b61e77a1b39452fbedf0472ca5e"
integrity sha512-di1b+D0p+rfeboHO5W7gTVeZDIK5+maEgstrZbWZSSvxDyfDRkkyBE1AJR5Psd6doNldluXlCWqXriUfqu/9Qg==
"@testing-library/react@^10.0.4":
version "10.0.4"
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-10.0.4.tgz#8e0e299cd91acc626d81ed8489fdc13df864c31d"
integrity sha512-2e1B5debfuiIGbvUuiSXybskuh7ZTVJDDvG/IxlzLOY9Co/mKFj9hIklAe2nGZYcOUxFaiqWrRZ9vCVGzJfRlQ==
dependencies:
"@babel/runtime" "^7.8.4"
"@testing-library/dom" "^6.15.0"
"@types/testing-library__react" "^9.1.2"
"@babel/runtime" "^7.9.6"
"@testing-library/dom" "^7.2.2"
"@types/testing-library__react" "^10.0.1"

"@types/babel__core@^7.1.0":
version "7.1.6"
Expand Down Expand Up @@ -2189,7 +2191,7 @@
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==

"@types/testing-library__dom@*", "@types/testing-library__dom@^6.12.1":
"@types/testing-library__dom@*":
version "6.12.1"
resolved "https://registry.yarnpkg.com/@types/testing-library__dom/-/testing-library__dom-6.12.1.tgz#37af28fae051f9e3feed5684535b1540c97ae28b"
integrity sha512-cgqnEjxKk31tQt29j4baSWaZPNjQf3bHalj2gcHQTpW5SuHRal76gOpF0vypeEo6o+sS5inOvvNdzLY0B3FB2A==
Expand All @@ -2203,10 +2205,10 @@
dependencies:
"@types/jest" "*"

"@types/testing-library__react@^9.1.2":
version "9.1.3"
resolved "https://registry.yarnpkg.com/@types/testing-library__react/-/testing-library__react-9.1.3.tgz#35eca61cc6ea923543796f16034882a1603d7302"
integrity sha512-iCdNPKU3IsYwRK9JieSYAiX0+aYDXOGAmrC/3/M7AqqSDKnWWVv07X+Zk1uFSL7cMTUYzv4lQRfohucEocn5/w==
"@types/testing-library__react@^10.0.1":
version "10.0.1"
resolved "https://registry.yarnpkg.com/@types/testing-library__react/-/testing-library__react-10.0.1.tgz#92bb4a02394bf44428e35f1da2970ed77f803593"
integrity sha512-RbDwmActAckbujLZeVO/daSfdL1pnjVqas25UueOkAY5r7vriavWf0Zqg7ghXMHa8ycD/kLkv8QOj31LmSYwww==
dependencies:
"@types/react-dom" "*"
"@types/testing-library__dom" "*"
Expand Down Expand Up @@ -5315,10 +5317,10 @@ doctrine@^3.0.0:
dependencies:
esutils "^2.0.2"

dom-accessibility-api@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.3.0.tgz#511e5993dd673b97c87ea47dba0e3892f7e0c983"
integrity sha512-PzwHEmsRP3IGY4gv/Ug+rMeaTIyTJvadCb+ujYXYeIylbHJezIyNToe8KfEgHTCEYyC+/bUghYOGg8yMGlZ6vA==
dom-accessibility-api@^0.4.4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.4.4.tgz#c2f9fb8b591bc19581e7ef3e6fe35baf1967c498"
integrity sha512-XBM62jdDc06IXSujkqw6BugEWiDkp6jphtzVJf1kgPQGvfzaU7/jRtRSF/mxc8DBCIm2LS3bN1dCa5Sfxx982A==

dom-converter@^0.2:
version "0.2.0"
Expand Down Expand Up @@ -11267,6 +11269,16 @@ pretty-format@^25.1.0:
ansi-styles "^4.0.0"
react-is "^16.12.0"

pretty-format@^25.5.0:
version "25.5.0"
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-25.5.0.tgz#7873c1d774f682c34b8d48b6743a2bf2ac55791a"
integrity sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ==
dependencies:
"@jest/types" "^25.5.0"
ansi-regex "^5.0.0"
ansi-styles "^4.0.0"
react-is "^16.12.0"

private@^0.1.8:
version "0.1.8"
resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff"
Expand Down Expand Up @@ -14232,11 +14244,6 @@ w3c-xmlserializer@^1.1.2:
webidl-conversions "^4.0.2"
xml-name-validator "^3.0.0"

wait-for-expect@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/wait-for-expect/-/wait-for-expect-3.0.2.tgz#d2f14b2f7b778c9b82144109c8fa89ceaadaa463"
integrity sha512-cfS1+DZxuav1aBYbaO/kE06EOS8yRw7qOFoD3XtjTkYvCvh3zUvNST8DXK/nPaeqIzIv3P3kL3lRJn8iwOiSag==

wait-on@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-4.0.2.tgz#6ee9b5751b4e0329630abbb5fdba787802b32914"
Expand Down