Skip to content

Commit

Permalink
chore: bump test packages & fixed tests (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra authored Jan 18, 2021
1 parent b234e3a commit e1742a5
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 39 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
"@storybook/addon-essentials": "6.1.10",
"@storybook/react": "6.1.10",
"@testing-library/dom": "^7.28.1",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.2",
"@testing-library/react-hooks": "3.6.0",
"@testing-library/user-event": "12.5.0",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.3",
"@testing-library/react-hooks": "^5.0.0",
"@testing-library/user-event": "^12.6.0",
"@textlint/markdown-to-ast": "^6.2.5",
"@types/jest": "26.0.16",
"@types/jest-axe": "3.5.1",
Expand Down Expand Up @@ -155,7 +155,7 @@
"react-transition-group": "4.4.1",
"react-virtual": "^2.3.2",
"reakit": "1.3.1",
"reakit-test-utils": "0.15.0",
"reakit-test-utils": "^0.15.1",
"rimraf": "3.0.2",
"sort-package-json": "^1.48.0",
"standard-version": "9.0.0",
Expand Down
4 changes: 4 additions & 0 deletions src/segment/__tests__/Segment.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from "react";
import MockDate from "mockdate";
import { cleanup } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { axe, render, press, screen } from "reakit-test-utils";
Expand All @@ -11,6 +12,9 @@ import {
} from "../index";
import { repeat } from "../../utils/test-utils";

beforeAll(() => {
MockDate.set(new Date("1/1/2020"));
});
afterEach(cleanup);

const SegmentSpinnerComp: React.FC<SegmentInitialState> = props => {
Expand Down
89 changes: 55 additions & 34 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2482,10 +2482,10 @@
lz-string "^1.4.4"
pretty-format "^26.6.2"

"@testing-library/jest-dom@^5.11.6":
version "5.11.6"
resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.11.6.tgz#782940e82e5cd17bc0a36f15156ba16f3570ac81"
integrity sha512-cVZyUNRWwUKI0++yepYpYX7uhrP398I+tGz4zOlLVlUYnZS+Svuxv4fwLeCIy7TnBYKXUaOlQr3vopxL8ZfEnA==
"@testing-library/jest-dom@^5.11.9":
version "5.11.9"
resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.11.9.tgz#e6b3cd687021f89f261bd53cbe367041fbd3e975"
integrity sha512-Mn2gnA9d1wStlAIT2NU8J15LNob0YFBVjs2aEQ3j8rsfRQo+lAs7/ui1i2TGaJjapLmuNPLTsrm+nPjmZDwpcQ==
dependencies:
"@babel/runtime" "^7.9.2"
"@types/testing-library__jest-dom" "^5.9.1"
Expand All @@ -2496,28 +2496,32 @@
lodash "^4.17.15"
redent "^3.0.0"

"@testing-library/react-hooks@3.6.0":
version "3.6.0"
resolved "https://registry.yarnpkg.com/@testing-library/react-hooks/-/react-hooks-3.6.0.tgz#37e595eb1111e71b39ef0597b390850b9af3660d"
integrity sha512-7TbqFN4CqEmfR6bC50XOtXbM3A5sizzEOmcH7IBVdm0oFnqmlkPTnu4sMt9BfepsYDvVpF8Y2CaoMJlfmyLYuQ==
"@testing-library/react-hooks@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@testing-library/react-hooks/-/react-hooks-5.0.0.tgz#994af047a94c7ed04b34920f70b3fd017e9976cd"
integrity sha512-c/wvcz/Set+KOvbi07EQO7tujsUIp5HnNAygJoSpMTVkIDcp7JtSemhjRDg1WL6Qsw076inWobTKCepK3mgi8A==
dependencies:
"@babel/runtime" "^7.12.5"
"@types/testing-library__react-hooks" "^3.4.0"
"@types/react" ">=16.9.0"
"@types/react-dom" ">=16.9.0"
"@types/react-test-renderer" ">=16.9.0"
filter-console "^0.1.1"
react-error-boundary "^3.1.0"

"@testing-library/react@^11.2.2":
version "11.2.2"
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-11.2.2.tgz#099c6c195140ff069211143cb31c0f8337bdb7b7"
integrity sha512-jaxm0hwUjv+hzC+UFEywic7buDC9JQ1q3cDsrWVSDAPmLotfA6E6kUHlYm/zOeGCac6g48DR36tFHxl7Zb+N5A==
"@testing-library/react@^11.2.3":
version "11.2.3"
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-11.2.3.tgz#9971ede1c8465a231d7982eeca3c39fc362d5443"
integrity sha512-BirBUGPkTW28ULuCwIbYo0y2+0aavHczBT6N9r3LrsswEW3pg25l1wgoE7I8QBIy1upXWkwKpYdWY7NYYP0Bxw==
dependencies:
"@babel/runtime" "^7.12.5"
"@testing-library/dom" "^7.28.1"

"@testing-library/user-event@12.5.0":
version "12.5.0"
resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-12.5.0.tgz#7c6f69cee4dbd11037ac9c3f62c5d81b9a4ccf30"
integrity sha512-9uXr4+OwjHVUxzdfYZ2yCnF3xlEzr8cZOdqjGnqD8Qb1NoCJrm7UXxG3RUpL2QqcqZ1eqVuxkFJTCky5Yit+XQ==
"@testing-library/user-event@^12.6.0":
version "12.6.0"
resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-12.6.0.tgz#2d0229e399eb5a0c6c112e848611432356cac886"
integrity sha512-FNEH/HLmOk5GO70I52tKjs7WvGYckeE/SrnLX/ip7z2IGbffyd5zOUM1tZ10vsTphqm+VbDFI0oaXu0wcfQsAQ==
dependencies:
"@babel/runtime" "^7.10.2"
"@babel/runtime" "^7.12.5"

"@textlint/ast-node-types@^4.0.0", "@textlint/ast-node-types@^4.3.4":
version "4.3.4"
Expand Down Expand Up @@ -2847,7 +2851,7 @@
"@types/react" "*"
"@types/reactcss" "*"

"@types/[email protected]":
"@types/[email protected]", "@types/react-dom@>=16.9.0":
version "17.0.0"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.0.tgz#b3b691eb956c4b3401777ee67b900cb28415d95a"
integrity sha512-lUqY7OlkF/RbNtD5nIq7ot8NquXrdFrjSOR6+w9a9RFQevGi1oZO1dcJbXMeONAPKtZ2UrZOEJ5UOCVsxbLk/g==
Expand All @@ -2868,7 +2872,7 @@
dependencies:
"@types/react" "*"

"@types/react-test-renderer@*":
"@types/react-test-renderer@>=16.9.0":
version "17.0.0"
resolved "https://registry.yarnpkg.com/@types/react-test-renderer/-/react-test-renderer-17.0.0.tgz#9be47b375eeb906fced37049e67284a438d56620"
integrity sha512-nvw+F81OmyzpyIE1S0xWpLonLUZCMewslPuA8BtjSKc5XEbn8zEQBXS7KuOLHTNnSOEM2Pum50gHOoZ62tqTRg==
Expand All @@ -2882,7 +2886,7 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/[email protected]":
"@types/react@*", "@types/[email protected]", "@types/react@>=16.9.0":
version "17.0.0"
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.0.tgz#5af3eb7fad2807092f0046a1302b7823e27919b8"
integrity sha512-aj/L7RIMsRlWML3YB6KZiXB3fV2t41+5RBGYF8z+tAKU43Px8C3cYUZsDvf1/+Bm4FK21QWBrDutu8ZJ/70qOw==
Expand Down Expand Up @@ -2919,13 +2923,6 @@
dependencies:
"@types/jest" "*"

"@types/testing-library__react-hooks@^3.4.0":
version "3.4.1"
resolved "https://registry.yarnpkg.com/@types/testing-library__react-hooks/-/testing-library__react-hooks-3.4.1.tgz#b8d7311c6c1f7db3103e94095fe901f8fef6e433"
integrity sha512-G4JdzEcq61fUyV6wVW9ebHWEiLK2iQvaBuCHHn9eMSbZzVh4Z4wHnUGIvQOYCCYeu5DnUtFyNYuAAgbSaO/43Q==
dependencies:
"@types/react-test-renderer" "*"

"@types/uglify-js@*":
version "3.11.1"
resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.11.1.tgz#97ff30e61a0aa6876c270b5f538737e2d6ab8ceb"
Expand Down Expand Up @@ -7447,6 +7444,11 @@ fill-range@^7.0.1:
dependencies:
to-regex-range "^5.0.1"

filter-console@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/filter-console/-/filter-console-0.1.1.tgz#6242be28982bba7415bcc6db74a79f4a294fa67c"
integrity sha512-zrXoV1Uaz52DqPs+qEwNJWJFAWZpYJ47UNmpN9q4j+/EYsz85uV0DC9k8tRND5kYmoVzL0W+Y75q4Rg8sRJCdg==

finalhandler@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d"
Expand Down Expand Up @@ -13204,6 +13206,13 @@ react-element-to-jsx-string@^14.3.1:
"@base2/pretty-print-object" "1.0.0"
is-plain-object "3.0.1"

react-error-boundary@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/react-error-boundary/-/react-error-boundary-3.1.0.tgz#9487443df2f9ba1db90d8ab52351814907ea4af3"
integrity sha512-lmPrdi5SLRJR+AeJkqdkGlW/CRkAUvZnETahK58J4xb5wpbfDngasEGu+w0T1iXEhVrYBJZeW+c4V1hILCnMWQ==
dependencies:
"@babel/runtime" "^7.12.5"

react-error-overlay@^6.0.7:
version "6.0.8"
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.8.tgz#474ed11d04fc6bda3af643447d85e9127ed6b5de"
Expand Down Expand Up @@ -13532,27 +13541,39 @@ [email protected], reakit-system@^0.15.0:
dependencies:
reakit-utils "^0.15.0"

[email protected].0:
version "0.15.0"
resolved "https://registry.yarnpkg.com/reakit-test-utils/-/reakit-test-utils-0.15.0.tgz#cbea34cc8d2fb062ee9cd2d003607f8257540f21"
integrity sha512-9Az4eEYhfZ0JpMDzB3eRKVuR9wtwl6Z6ai2jOJjDVqsb/NejfkkcPbtKYvQNXtewKcIhOCf7Ecd55WxjWJArmw==
reakit-test-utils@^0.15.1:
version "0.15.1"
resolved "https://registry.yarnpkg.com/reakit-test-utils/-/reakit-test-utils-0.15.1.tgz#a83cf5172d5ee53f57f3c02fa00ce44278c70234"
integrity sha512-f4DKML8C+iDSE8bRPz1vH7mpiCkDbtORadZtwDvXdLO6+DJaFwB2fe4wwHHlUkHukvAqnZjbhhjGuu70emyXCg==
dependencies:
jest-axe "4.1.0"
reakit-utils "^0.15.0"
reakit-warning "^0.6.0"
reakit-utils "^0.15.1"
reakit-warning "^0.6.1"

[email protected], reakit-utils@^0.15.0:
version "0.15.0"
resolved "https://registry.yarnpkg.com/reakit-utils/-/reakit-utils-0.15.0.tgz#41a53e4b768002d282aee76994737f2532be5afc"
integrity sha512-c9HWaT9XU8KQWj+dhUG01WD+D4EK5bQHq+wVwRUuTXau0e49i4udNxo/t/4M3lXeOS+WfgJ8aC00/0imgzPLTw==

reakit-utils@^0.15.1:
version "0.15.1"
resolved "https://registry.yarnpkg.com/reakit-utils/-/reakit-utils-0.15.1.tgz#797f0a43f6a1dbc22d161224d5d2272e287dbfe3"
integrity sha512-6cZgKGvOkAMQgkwU9jdYbHfkuIN1Pr+vwcB19plLvcTfVN0Or10JhIuj9X+JaPZyI7ydqTDFaKNdUcDP69o/+Q==

reakit-warning@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/reakit-warning/-/reakit-warning-0.6.0.tgz#16c5b4f3ce603d28f6c624803f113d5d95816168"
integrity sha512-D3vMUQ8fFktZ+drs4PuUlwjLanYsc6bRoYQOma2iGTfQtqwQkhFeNMDKxlBQ79GfdQtZF/ECiCaLLjDUsIseWA==
dependencies:
reakit-utils "^0.15.0"

reakit-warning@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/reakit-warning/-/reakit-warning-0.6.1.tgz#dba33bb8866aebe30e67ac433ead707d16d38a36"
integrity sha512-poFUV0EyxB+CcV9uTNBAFmcgsnR2DzAbOTkld4Ul+QOKSeEHZB3b3+MoZQgcYHmbvG19Na1uWaM7ES+/Eyr8tQ==
dependencies:
reakit-utils "^0.15.1"

[email protected]:
version "1.3.1"
resolved "https://registry.yarnpkg.com/reakit/-/reakit-1.3.1.tgz#a103f8ac082fd41c5654e564b36201f9979389a5"
Expand Down

1 comment on commit e1742a5

@vercel
Copy link

@vercel vercel bot commented on e1742a5 Jan 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.