From d12bc804ea2cfd0708510899646b40be1f1020a7 Mon Sep 17 00:00:00 2001 From: m7kvqbe1 Date: Wed, 15 Apr 2020 10:36:31 +0100 Subject: [PATCH] test(component library): Upgrade from deprecated RTL APIs - Issue with missing types: https://github.com/testing-library/react-testing-library/issues/610 --- packages/react-component-library/package.json | 1 + .../src/components/Modal/Modal.test.tsx | 7 +- .../NumberInput/NumberInput.test.tsx | 2 +- .../src/components/Popover/Popover.test.tsx | 11 +- .../src/components/TabSet/TabSet.test.tsx | 10 +- .../src/fragments/Masthead/Masthead.test.tsx | 18 +- .../NotificationPanel.test.tsx | 13 +- yarn.lock | 232 +++++++++--------- 8 files changed, 156 insertions(+), 138 deletions(-) diff --git a/packages/react-component-library/package.json b/packages/react-component-library/package.json index e3dc4d2d55..dc78bfd06f 100644 --- a/packages/react-component-library/package.json +++ b/packages/react-component-library/package.json @@ -71,6 +71,7 @@ "@types/react-select": "^3.0.10", "@types/react-transition-group": "^4.2.3", "@types/storybook__react": "^5.2.1", + "@types/testing-library__react": "^10.0.1", "@types/uuid": "^7.0.2", "@types/yup": "^0.26.28", "@typescript-eslint/eslint-plugin": "^2.17.0", diff --git a/packages/react-component-library/src/components/Modal/Modal.test.tsx b/packages/react-component-library/src/components/Modal/Modal.test.tsx index 8eccbe6d30..a0b13e9bc6 100644 --- a/packages/react-component-library/src/components/Modal/Modal.test.tsx +++ b/packages/react-component-library/src/components/Modal/Modal.test.tsx @@ -1,10 +1,11 @@ +// @ts-nocheck import React, { useState } from 'react' import '@testing-library/jest-dom/extend-expect' import { render, RenderResult, fireEvent, - waitForElement, + waitFor, } from '@testing-library/react' import { Button, ButtonProps } from '../Button' @@ -191,7 +192,7 @@ describe('Modal', () => { beforeEach(() => { wrapper.getByText('Show').click() - return waitForElement(() => wrapper.queryAllByText('Hide')) + return waitFor(() => wrapper.queryAllByText('Hide')) }) it('should be open', () => { @@ -205,7 +206,7 @@ describe('Modal', () => { beforeEach(() => { wrapper.getByText('Hide').click() - return waitForElement(() => wrapper.queryAllByText('Show')) + return waitFor(() => wrapper.queryAllByText('Show')) }) it('should be closed again', () => { diff --git a/packages/react-component-library/src/components/NumberInput/NumberInput.test.tsx b/packages/react-component-library/src/components/NumberInput/NumberInput.test.tsx index a41cfa5d50..3db4160841 100644 --- a/packages/react-component-library/src/components/NumberInput/NumberInput.test.tsx +++ b/packages/react-component-library/src/components/NumberInput/NumberInput.test.tsx @@ -1,6 +1,6 @@ import React from 'react' import '@testing-library/jest-dom/extend-expect' -import { render, RenderResult, fireEvent, waitForElement } from '@testing-library/react' +import { render, RenderResult, fireEvent } from '@testing-library/react' import { NumberInput } from './NumberInput' diff --git a/packages/react-component-library/src/components/Popover/Popover.test.tsx b/packages/react-component-library/src/components/Popover/Popover.test.tsx index ba13132564..0bbfeb1198 100644 --- a/packages/react-component-library/src/components/Popover/Popover.test.tsx +++ b/packages/react-component-library/src/components/Popover/Popover.test.tsx @@ -1,8 +1,13 @@ +// @ts-nocheck import React from 'react' import '@testing-library/jest-dom/extend-expect' import { renderToStaticMarkup } from 'react-dom/server' - -import { render, RenderResult, fireEvent, wait } from '@testing-library/react' +import { + render, + RenderResult, + fireEvent, + waitFor, +} from '@testing-library/react' import { Popover, POPOVER_PLACEMENT } from '.' @@ -54,7 +59,7 @@ describe('Popover', () => { }) it('to not be visible to the end user', async () => { - await wait(() => { + await waitFor(() => { expect(wrapper.getByTestId('floating-box').classList).not.toContain( 'is-visible' ) diff --git a/packages/react-component-library/src/components/TabSet/TabSet.test.tsx b/packages/react-component-library/src/components/TabSet/TabSet.test.tsx index 5d2407fcbe..2a973318e5 100644 --- a/packages/react-component-library/src/components/TabSet/TabSet.test.tsx +++ b/packages/react-component-library/src/components/TabSet/TabSet.test.tsx @@ -1,6 +1,12 @@ +// @ts-nocheck import React from 'react' import '@testing-library/jest-dom/extend-expect' -import { fireEvent, render, RenderResult, wait } from '@testing-library/react' +import { + fireEvent, + render, + RenderResult, + waitFor, +} from '@testing-library/react' import { Tab, TabSet } from '.' import { SCROLL_DIRECTION } from './constants' @@ -151,7 +157,7 @@ describe('TabSet', () => { ) { wrapper.getByTestId(`scroll-${direction}`).click() - await wait(flushPromises) + await waitFor(flushPromises) } beforeEach(() => { diff --git a/packages/react-component-library/src/fragments/Masthead/Masthead.test.tsx b/packages/react-component-library/src/fragments/Masthead/Masthead.test.tsx index 922ab2b9bd..c5b1cd6e6e 100644 --- a/packages/react-component-library/src/fragments/Masthead/Masthead.test.tsx +++ b/packages/react-component-library/src/fragments/Masthead/Masthead.test.tsx @@ -1,6 +1,12 @@ +// @ts-nocheck import React from 'react' import '@testing-library/jest-dom/extend-expect' -import { fireEvent, render, RenderResult, wait } from '@testing-library/react' +import { + fireEvent, + render, + RenderResult, + waitFor, +} from '@testing-library/react' import { Link } from '../../index' import { Masthead, MastheadProps } from './Masthead' @@ -136,11 +142,11 @@ describe('Masthead', () => { }) it('should use the onSearch method passed to the masthead to search', async () => { - await wait(() => expect(props.onSearch).toHaveBeenCalledTimes(1)) + await waitFor(() => expect(props.onSearch).toHaveBeenCalledTimes(1)) }) it('should hide the searchbar from view', async () => { - await wait(() => + await waitFor(() => expect(wrapper.queryByTestId('searchbar')).toBeNull() ) }) @@ -221,7 +227,7 @@ describe('Masthead', () => { }) it('should include the notification content sent to it', async () => { - await wait(() => + await waitFor(() => expect(wrapper.getByTestId('notifications')).toBeInTheDocument() ) }) @@ -236,7 +242,7 @@ describe('Masthead', () => { beforeEach(async () => { const button = wrapper.queryByTestId('notification-button') - await wait(() => wrapper.getByTestId('notifications')) + await waitFor(() => wrapper.getByTestId('notifications')) fireEvent( button, @@ -248,7 +254,7 @@ describe('Masthead', () => { }) it('should remove the rule on the wrapper so mobile scrolling is enabled again', async () => { - await wait(() => + await waitFor(() => expect(wrapper.queryByTestId('masthead')).not.toHaveClass( 'rn-masthead--show-notifications' ) diff --git a/packages/react-component-library/src/fragments/NotificationPanel/NotificationPanel.test.tsx b/packages/react-component-library/src/fragments/NotificationPanel/NotificationPanel.test.tsx index 4e0b17622c..1998954872 100644 --- a/packages/react-component-library/src/fragments/NotificationPanel/NotificationPanel.test.tsx +++ b/packages/react-component-library/src/fragments/NotificationPanel/NotificationPanel.test.tsx @@ -1,10 +1,11 @@ +// @ts-nocheck import React from 'react' import '@testing-library/jest-dom/extend-expect' import { fireEvent, render, RenderResult, - waitForElement, + waitFor, waitForElementToBeRemoved, } from '@testing-library/react' @@ -91,7 +92,7 @@ describe('NotificationPanel', () => { button.click() - return waitForElement(() => wrapper.queryAllByText('Thomas Stephens')) + return waitFor(() => wrapper.queryAllByText('Thomas Stephens')) }) it('should blur the button', () => { @@ -135,7 +136,7 @@ describe('NotificationPanel', () => { beforeEach(async done => { wrapper.getByTestId('notification-button').click() - await waitForElement(() => wrapper.queryAllByText('Thomas Stephens')) + await waitFor(() => wrapper.queryAllByText('Thomas Stephens')) wrapper.getByText('View all notifications').parentElement.click() @@ -170,7 +171,7 @@ describe('NotificationPanel', () => { beforeEach(() => { wrapper.getByTestId('notification-button').click() - return waitForElement(() => wrapper.queryAllByText('Thomas Stephens')) + return waitFor(() => wrapper.queryAllByText('Thomas Stephens')) }) it('should default to showing notifications on the right', () => { @@ -197,7 +198,7 @@ describe('NotificationPanel', () => { beforeEach(() => { wrapper.getByTestId('notification-button').click() - return waitForElement(() => wrapper.queryAllByText('Thomas Stephens')) + return waitFor(() => wrapper.queryAllByText('Thomas Stephens')) }) it('should default to showing notifications on the right', () => { @@ -224,7 +225,7 @@ describe('NotificationPanel', () => { wrapper.getByTestId('notification-button').click() - await waitForElement(() => wrapper.queryAllByText('Thomas Stephens')) + await waitFor(() => wrapper.queryAllByText('Thomas Stephens')) fireEvent( document, diff --git a/yarn.lock b/yarn.lock index 1879ed4c56..6f37dbc403 100644 --- a/yarn.lock +++ b/yarn.lock @@ -957,7 +957,7 @@ core-js-pure "^3.0.0" regenerator-runtime "^0.13.4" -"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.3.1", "@babel/runtime@^7.3.4", "@babel/runtime@^7.4.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.0", "@babel/runtime@^7.5.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.7.6", "@babel/runtime@^7.7.7", "@babel/runtime@^7.8.3", "@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.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.0", "@babel/runtime@^7.5.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.7.6", "@babel/runtime@^7.7.7", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": version "7.9.2" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.2.tgz#d90df0583a3a252f09aaa619665367bae518db06" integrity sha512-NE2DtOdufG7R5vnfQUTehdTfNycfUANEtCa9PssN9O/xmTzP4E08UI797ixaei6hBEVL9BI/PsdJS5x7mWoB9Q== @@ -1358,7 +1358,7 @@ resolved "https://registry.yarnpkg.com/@hapi/bourne/-/bourne-1.3.2.tgz#0a7095adea067243ce3283e1b56b8a8f453b242a" integrity sha512-1dVNHT76Uu5N3eJNTYcvxee+jzX4Z9lfciqRRHCU27ihbUcYi+iSc2iml5Ke1LXe1SyJCLA0+14Jh4tXJgOppA== -"@hapi/hoek@8.x.x", "@hapi/hoek@^8.3.0", "@hapi/hoek@^8.5.1": +"@hapi/hoek@8.x.x", "@hapi/hoek@^8.3.0": version "8.5.1" resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-8.5.1.tgz#fde96064ca446dec8c55a8c2f130957b070c6e06" integrity sha512-yN7kbciD87WzLGc5539Tn0sApjyiGHAJgKvG9W8C7O+6c7qmoQMfVs0W4bX17eqz6C78QJqqFrtgdK5EWf6Qow== @@ -2587,19 +2587,6 @@ global "^4.3.2" util-deprecate "^1.0.2" -"@storybook/addons@5.3.18": - version "5.3.18" - resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-5.3.18.tgz#5cbba6407ef7a802041c5ee831473bc3bed61f64" - integrity sha512-ZQjDgTUDFRLvAiBg2d8FgPgghfQ+9uFyXQbtiGlTBLinrPCeQd7J86qiUES0fcGoohCCw0wWKtvB0WF2z1XNDg== - dependencies: - "@storybook/api" "5.3.18" - "@storybook/channels" "5.3.18" - "@storybook/client-logger" "5.3.18" - "@storybook/core-events" "5.3.18" - core-js "^3.0.1" - global "^4.3.2" - util-deprecate "^1.0.2" - "@storybook/addons@5.3.9": version "5.3.9" resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-5.3.9.tgz#f2492de356e0cd38e3da357f4dafa058a4756e36" @@ -2613,19 +2600,6 @@ global "^4.3.2" util-deprecate "^1.0.2" -"@storybook/addons@^5.3.9": - version "5.3.18" - resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-5.3.18.tgz#5cbba6407ef7a802041c5ee831473bc3bed61f64" - integrity sha512-ZQjDgTUDFRLvAiBg2d8FgPgghfQ+9uFyXQbtiGlTBLinrPCeQd7J86qiUES0fcGoohCCw0wWKtvB0WF2z1XNDg== - dependencies: - "@storybook/api" "5.3.18" - "@storybook/channels" "5.3.18" - "@storybook/client-logger" "5.3.18" - "@storybook/core-events" "5.3.18" - core-js "^3.0.1" - global "^4.3.2" - util-deprecate "^1.0.2" - "@storybook/api@5.3.17": version "5.3.17" resolved "https://registry.yarnpkg.com/@storybook/api/-/api-5.3.17.tgz#1c0dad3309afef6b0a5585cb59c65824fb4d2721" @@ -2678,32 +2652,6 @@ telejson "^3.2.0" util-deprecate "^1.0.2" -"@storybook/api@5.3.18": - version "5.3.18" - resolved "https://registry.yarnpkg.com/@storybook/api/-/api-5.3.18.tgz#95582ab90d947065e0e34ed603650a3630dcbd16" - integrity sha512-QXaccNCARHzPWOuxYndiebGWBZmwiUvRgB9ji0XTJBS3y8K0ZPb5QyuqiKPaEWUj8dBA8rzdDtkW3Yt95Namaw== - dependencies: - "@reach/router" "^1.2.1" - "@storybook/channels" "5.3.18" - "@storybook/client-logger" "5.3.18" - "@storybook/core-events" "5.3.18" - "@storybook/csf" "0.0.1" - "@storybook/router" "5.3.18" - "@storybook/theming" "5.3.18" - "@types/reach__router" "^1.2.3" - core-js "^3.0.1" - fast-deep-equal "^2.0.1" - global "^4.3.2" - lodash "^4.17.15" - memoizerific "^1.11.3" - prop-types "^15.6.2" - react "^16.8.3" - semver "^6.0.0" - shallow-equal "^1.1.0" - store2 "^2.7.1" - telejson "^3.2.0" - util-deprecate "^1.0.2" - "@storybook/api@5.3.9": version "5.3.9" resolved "https://registry.yarnpkg.com/@storybook/api/-/api-5.3.9.tgz#090119c6fd4082442e926a434d3d171535ec6784" @@ -2777,13 +2725,6 @@ dependencies: core-js "^3.0.1" -"@storybook/channels@5.3.18": - version "5.3.18" - resolved "https://registry.yarnpkg.com/@storybook/channels/-/channels-5.3.18.tgz#490c9eaa8292b0571c0f665052b12addf7c35f21" - integrity sha512-scP/6td/BJSEOgfN+qaYGDf3E793xye7tIw6W+sYqwg+xdMFO39wVXgVZNpQL6sLEwpJZTaPywCjC6p6ksErqQ== - dependencies: - core-js "^3.0.1" - "@storybook/channels@5.3.9": version "5.3.9" resolved "https://registry.yarnpkg.com/@storybook/channels/-/channels-5.3.9.tgz#7ee8f6e6f4c9465227120d6711805b5e6862107f" @@ -2874,13 +2815,6 @@ dependencies: core-js "^3.0.1" -"@storybook/client-logger@5.3.18": - version "5.3.18" - resolved "https://registry.yarnpkg.com/@storybook/client-logger/-/client-logger-5.3.18.tgz#27c9d09d788965db0164be6e168bc3f03adbf88f" - integrity sha512-RZjxw4uqZX3Yk27IirbB/pQG+wRsQSSRlKqYa8KQ5bSanm4IrcV9VA1OQbuySW9njE+CexAnakQJ/fENdmurNg== - dependencies: - core-js "^3.0.1" - "@storybook/client-logger@5.3.9": version "5.3.9" resolved "https://registry.yarnpkg.com/@storybook/client-logger/-/client-logger-5.3.9.tgz#06654be9caa8d37366270b0426c2d5acb217f504" @@ -2983,13 +2917,6 @@ dependencies: core-js "^3.0.1" -"@storybook/core-events@5.3.18": - version "5.3.18" - resolved "https://registry.yarnpkg.com/@storybook/core-events/-/core-events-5.3.18.tgz#e5d335f8a2c7dd46502b8f505006f1e111b46d49" - integrity sha512-uQ6NYJ5WODXK8DJ7m8y3yUAtWB3n+6XtYztjY+tdkCsLYvTYDXNS+epV+f5Hu9+gB+/Dm+b5Su4jDD+LZB2QWA== - dependencies: - core-js "^3.0.1" - "@storybook/core-events@5.3.9": version "5.3.9" resolved "https://registry.yarnpkg.com/@storybook/core-events/-/core-events-5.3.9.tgz#3c7fbc20204ae4b937c896ed6281e782cc09c4aa" @@ -3152,21 +3079,6 @@ qs "^6.6.0" util-deprecate "^1.0.2" -"@storybook/router@5.3.18": - version "5.3.18" - resolved "https://registry.yarnpkg.com/@storybook/router/-/router-5.3.18.tgz#8ab22f1f2f7f957e78baf992030707a62289076e" - integrity sha512-6B2U2C75KTSVaCuYYgcubeJGcCSnwsXuEf50hEd5mGqWgHZfojCtGvB7Ko4X+0h8rEC+eNA4p7YBOhlUv9WNrQ== - dependencies: - "@reach/router" "^1.2.1" - "@storybook/csf" "0.0.1" - "@types/reach__router" "^1.2.3" - core-js "^3.0.1" - global "^4.3.2" - lodash "^4.17.15" - memoizerific "^1.11.3" - qs "^6.6.0" - util-deprecate "^1.0.2" - "@storybook/router@5.3.9": version "5.3.9" resolved "https://registry.yarnpkg.com/@storybook/router/-/router-5.3.9.tgz#3c6e01f4dced9de8e8c5c314352fdc437f2441c2" @@ -3218,24 +3130,6 @@ resolve-from "^5.0.0" ts-dedent "^1.1.0" -"@storybook/theming@5.3.18": - version "5.3.18" - resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-5.3.18.tgz#35e78de79d9cf8f1248af0dd1c7fa60555761312" - integrity sha512-lfFTeLoYwLMKg96N3gn0umghMdAHgJBGuk2OM8Ll84yWtdl9RGnzfiI1Fl7Cr5k95dCF7drLJlJCao1VxUkFSA== - dependencies: - "@emotion/core" "^10.0.20" - "@emotion/styled" "^10.0.17" - "@storybook/client-logger" "5.3.18" - core-js "^3.0.1" - deep-object-diff "^1.1.0" - emotion-theming "^10.0.19" - global "^4.3.2" - memoizerific "^1.11.3" - polished "^3.3.1" - prop-types "^15.7.2" - resolve-from "^5.0.0" - ts-dedent "^1.1.0" - "@storybook/theming@5.3.9": version "5.3.9" resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-5.3.9.tgz#caaeea398f9e630394298ccfe8f36a185a289e4f" @@ -3916,7 +3810,7 @@ dependencies: "@types/jest" "*" -"@types/testing-library__react@^10.0.0": +"@types/testing-library__react@^10.0.0", "@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== @@ -4292,11 +4186,21 @@ acorn-walk@^6.0.1, acorn-walk@^6.1.1: resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c" integrity sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA== -acorn@^5.5.3, acorn@^6.0.1, acorn@^6.0.7, acorn@^6.2.1, acorn@^6.4.1, acorn@^7.1.0: +acorn@^5.5.3: + version "5.7.4" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e" + integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== + +acorn@^6.0.1, acorn@^6.0.7, acorn@^6.2.1: version "6.4.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.1.tgz#531e58ba3f51b9dacb9a6646ca4debf5b14ca474" integrity sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA== +acorn@^7.1.0: + version "7.1.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.1.tgz#e35668de0b402f359de515c5482a1ab9f89a69bf" + integrity sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg== + address@1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/address/-/address-1.0.3.tgz#b5f50631f8d6cec8bd20c963963afb55e06cbce9" @@ -5830,6 +5734,30 @@ cacache@^12.0.0, cacache@^12.0.2, cacache@^12.0.3: unique-filename "^1.1.1" y18n "^4.0.0" +cacache@^13.0.1: + version "13.0.1" + resolved "https://registry.yarnpkg.com/cacache/-/cacache-13.0.1.tgz#a8000c21697089082f85287a1aec6e382024a71c" + integrity sha512-5ZvAxd05HDDU+y9BVvcqYu2LLXmPnQ0hW62h32g4xBTgL/MppR4/04NHfj/ycM2y6lmTnbw6HVi+1eN0Psba6w== + dependencies: + chownr "^1.1.2" + figgy-pudding "^3.5.1" + fs-minipass "^2.0.0" + glob "^7.1.4" + graceful-fs "^4.2.2" + infer-owner "^1.0.4" + lru-cache "^5.1.1" + minipass "^3.0.0" + minipass-collect "^1.0.2" + minipass-flush "^1.0.5" + minipass-pipeline "^1.2.2" + mkdirp "^0.5.1" + move-concurrently "^1.0.1" + p-map "^3.0.0" + promise-inflight "^1.0.1" + rimraf "^2.7.1" + ssri "^7.0.0" + unique-filename "^1.1.1" + cache-base@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" @@ -9450,7 +9378,7 @@ find-cache-dir@^2.1.0: make-dir "^2.0.0" pkg-dir "^3.0.0" -find-cache-dir@^3.0.0: +find-cache-dir@^3.0.0, find-cache-dir@^3.2.0: version "3.3.1" resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.1.tgz#89b33fad4a4670daa94f855f7fbe31d6d84fe880" integrity sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ== @@ -10751,7 +10679,7 @@ handle-thing@^2.0.0: resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.0.tgz#0e039695ff50c93fc288557d696f3c1dc6776754" integrity sha512-d4sze1JNC454Wdo2fkuyzCr6aHcbL6PGGuFAz0Li/NcOm1tCHGnWDRmJP85dh9IhQErTc2svWFEX5xHIOo//kQ== -handlebars@^4.4.0, handlebars@^4.5.3: +handlebars@^4.4.0: version "4.7.6" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.6.tgz#d4c05c1baf90e9945f77aa68a7a219aa4a7df74e" integrity sha512-1f2BACcBfiwAfStCKZNrUCgqNZkGsAT7UM3kkYtXuLo0KnaVfjKOyf7PRzB6++aK9STyT1Pd2ZCPe3EGOXleXA== @@ -14350,11 +14278,42 @@ minimist-options@^4.0.1: arrify "^1.0.1" is-plain-obj "^1.1.0" -minimist@0.0.8, minimist@1.1.x, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5: +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= + +minimist@1.1.x: + version "1.1.3" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.1.3.tgz#3bedfd91a92d39016fcfaa1c681e8faa1a1efda8" + integrity sha1-O+39kaktOQFvz6ocaB6Pqhoe/ag= + +minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== +minipass-collect@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-1.0.2.tgz#22b813bf745dc6edba2576b940022ad6edc8c617" + integrity sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA== + dependencies: + minipass "^3.0.0" + +minipass-flush@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/minipass-flush/-/minipass-flush-1.0.5.tgz#82e7135d7e89a50ffe64610a787953c4c4cbb373" + integrity sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw== + dependencies: + minipass "^3.0.0" + +minipass-pipeline@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/minipass-pipeline/-/minipass-pipeline-1.2.2.tgz#3dcb6bb4a546e32969c7ad710f2c79a86abba93a" + integrity sha512-3JS5A2DKhD2g0Gg8x3yamO0pj7YeKGwVlDS90pF++kxptwx/F+B//roxf9SqYil5tQo65bijy+dAuAFZmYOouA== + dependencies: + minipass "^3.0.0" + minipass@^2.3.5, minipass@^2.6.0, minipass@^2.8.6, minipass@^2.9.0: version "2.9.0" resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz#e713762e7d3e32fed803115cf93e04bca9fcc9a6" @@ -14363,7 +14322,7 @@ minipass@^2.3.5, minipass@^2.6.0, minipass@^2.8.6, minipass@^2.9.0: safe-buffer "^5.1.2" yallist "^3.0.0" -minipass@^3.0.0: +minipass@^3.0.0, minipass@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.1.1.tgz#7607ce778472a185ad6d89082aa2070f79cedcd5" integrity sha512-UFqVihv6PQgwj8/yTGvl9kPz7xIAY+R5z6XYjRInD3Gk3qx6QGSD6zEcpeG4Dy/lQnv1J6zv8ejV90hyYIKf3w== @@ -15382,6 +15341,13 @@ p-limit@^2.0.0, p-limit@^2.2.0: dependencies: p-try "^2.0.0" +p-limit@^2.2.2: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + p-locate@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" @@ -18303,7 +18269,7 @@ rimraf@2.6.3: dependencies: glob "^7.1.3" -rimraf@^2.2.8, rimraf@^2.5.2, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2, rimraf@^2.6.3: +rimraf@^2.2.8, rimraf@^2.5.2, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2, rimraf@^2.6.3, rimraf@^2.7.1: version "2.7.1" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== @@ -19267,6 +19233,14 @@ ssri@^6.0.0, ssri@^6.0.1: dependencies: figgy-pudding "^3.5.1" +ssri@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/ssri/-/ssri-7.1.0.tgz#92c241bf6de82365b5c7fb4bd76e975522e1294d" + integrity sha512-77/WrDZUWocK0mvA5NTRQyveUf+wsrIc6vyrxpS8tVvYBcX215QbafrJR3KtkpskIzoFLqqNuuYQvxaMjXJ/0g== + dependencies: + figgy-pudding "^3.5.1" + minipass "^3.1.1" + stable@^0.1.8: version "0.1.8" resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf" @@ -20071,7 +20045,7 @@ terminal-link@^2.0.0: ansi-escapes "^4.2.1" supports-hyperlinks "^2.0.0" -terser-webpack-plugin@^1.4.2, terser-webpack-plugin@^1.4.3, terser-webpack-plugin@^2.1.2: +terser-webpack-plugin@^1.4.2, terser-webpack-plugin@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz#5ecaf2dbdc5fb99745fd06791f46fc9ddb1c9a7c" integrity sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA== @@ -20086,6 +20060,21 @@ terser-webpack-plugin@^1.4.2, terser-webpack-plugin@^1.4.3, terser-webpack-plugi webpack-sources "^1.4.0" worker-farm "^1.7.0" +terser-webpack-plugin@^2.1.2: + version "2.3.5" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-2.3.5.tgz#5ad971acce5c517440ba873ea4f09687de2f4a81" + integrity sha512-WlWksUoq+E4+JlJ+h+U+QUzXpcsMSSNXkDy9lBVkSqDn1w23Gg29L/ary9GeJVYCGiNJJX7LnVc4bwL1N3/g1w== + dependencies: + cacache "^13.0.1" + find-cache-dir "^3.2.0" + jest-worker "^25.1.0" + p-limit "^2.2.2" + schema-utils "^2.6.4" + serialize-javascript "^2.1.2" + source-map "^0.6.1" + terser "^4.4.3" + webpack-sources "^1.4.3" + terser@^4.1.2, terser@^4.3.9: version "4.6.3" resolved "https://registry.yarnpkg.com/terser/-/terser-4.6.3.tgz#e33aa42461ced5238d352d2df2a67f21921f8d87" @@ -20095,6 +20084,15 @@ terser@^4.1.2, terser@^4.3.9: source-map "~0.6.1" source-map-support "~0.5.12" +terser@^4.4.3: + version "4.6.11" + resolved "https://registry.yarnpkg.com/terser/-/terser-4.6.11.tgz#12ff99fdd62a26de2a82f508515407eb6ccd8a9f" + integrity sha512-76Ynm7OXUG5xhOpblhytE7X58oeNSmC8xnNhjWVo8CksHit0U0kO4hfNbPrrYwowLWFgM2n9L176VNx2QaHmtA== + dependencies: + commander "^2.20.0" + source-map "~0.6.1" + source-map-support "~0.5.12" + test-exclude@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" @@ -21333,7 +21331,7 @@ webpack-sources@^0.2.0: source-list-map "^1.1.1" source-map "~0.5.3" -webpack-sources@^1.1.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1: +webpack-sources@^1.1.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1, webpack-sources@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.4.3.tgz#eedd8ec0b928fbf1cbfe994e22d2d890f330a933" integrity sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==