diff --git a/apps/storybook/package.json b/apps/storybook/package.json
index 92bf47b96e..567c69cd0f 100644
--- a/apps/storybook/package.json
+++ b/apps/storybook/package.json
@@ -27,7 +27,7 @@
"@storybook/addon-essentials": "^7.0.27",
"@storybook/addon-interactions": "^7.0.27",
"@storybook/addon-viewport": "^7.0.27",
- "@storybook/jest": "^0.1.0",
+ "@storybook/jest": "^0.2.2",
"@storybook/react": "^7.0.27",
"@storybook/react-vite": "^7.0.27",
"@storybook/testing-library": "^0.2.0",
diff --git a/common/changes/pcln-autocomplete/fix-storybook-build-2_2023-09-05-13-51.json b/common/changes/pcln-autocomplete/fix-storybook-build-2_2023-09-05-13-51.json
new file mode 100644
index 0000000000..acd062580b
--- /dev/null
+++ b/common/changes/pcln-autocomplete/fix-storybook-build-2_2023-09-05-13-51.json
@@ -0,0 +1,10 @@
+{
+ "changes": [
+ {
+ "packageName": "pcln-autocomplete",
+ "comment": "",
+ "type": "none"
+ }
+ ],
+ "packageName": "pcln-autocomplete"
+}
\ No newline at end of file
diff --git a/common/changes/pcln-carousel/fix-storybook-build-2_2023-09-05-13-51.json b/common/changes/pcln-carousel/fix-storybook-build-2_2023-09-05-13-51.json
new file mode 100644
index 0000000000..e12a6550a6
--- /dev/null
+++ b/common/changes/pcln-carousel/fix-storybook-build-2_2023-09-05-13-51.json
@@ -0,0 +1,10 @@
+{
+ "changes": [
+ {
+ "packageName": "pcln-carousel",
+ "comment": "",
+ "type": "none"
+ }
+ ],
+ "packageName": "pcln-carousel"
+}
\ No newline at end of file
diff --git a/common/changes/pcln-design-system/fix-storybook-build-2_2023-09-05-13-51.json b/common/changes/pcln-design-system/fix-storybook-build-2_2023-09-05-13-51.json
new file mode 100644
index 0000000000..08c83f90b9
--- /dev/null
+++ b/common/changes/pcln-design-system/fix-storybook-build-2_2023-09-05-13-51.json
@@ -0,0 +1,10 @@
+{
+ "changes": [
+ {
+ "packageName": "pcln-design-system",
+ "comment": "",
+ "type": "none"
+ }
+ ],
+ "packageName": "pcln-design-system"
+}
\ No newline at end of file
diff --git a/common/changes/pcln-icons/fix-storybook-build-2_2023-09-05-13-51.json b/common/changes/pcln-icons/fix-storybook-build-2_2023-09-05-13-51.json
new file mode 100644
index 0000000000..9f33a59289
--- /dev/null
+++ b/common/changes/pcln-icons/fix-storybook-build-2_2023-09-05-13-51.json
@@ -0,0 +1,10 @@
+{
+ "changes": [
+ {
+ "packageName": "pcln-icons",
+ "comment": "",
+ "type": "none"
+ }
+ ],
+ "packageName": "pcln-icons"
+}
\ No newline at end of file
diff --git a/common/changes/pcln-menu/fix-storybook-build-2_2023-09-05-13-51.json b/common/changes/pcln-menu/fix-storybook-build-2_2023-09-05-13-51.json
new file mode 100644
index 0000000000..df31dbb6ea
--- /dev/null
+++ b/common/changes/pcln-menu/fix-storybook-build-2_2023-09-05-13-51.json
@@ -0,0 +1,10 @@
+{
+ "changes": [
+ {
+ "packageName": "pcln-menu",
+ "comment": "",
+ "type": "none"
+ }
+ ],
+ "packageName": "pcln-menu"
+}
\ No newline at end of file
diff --git a/common/changes/pcln-modal/fix-storybook-build-2_2023-09-05-13-51.json b/common/changes/pcln-modal/fix-storybook-build-2_2023-09-05-13-51.json
new file mode 100644
index 0000000000..b55d22ad43
--- /dev/null
+++ b/common/changes/pcln-modal/fix-storybook-build-2_2023-09-05-13-51.json
@@ -0,0 +1,10 @@
+{
+ "changes": [
+ {
+ "packageName": "pcln-modal",
+ "comment": "",
+ "type": "none"
+ }
+ ],
+ "packageName": "pcln-modal"
+}
\ No newline at end of file
diff --git a/common/changes/pcln-popover/fix-storybook-build-2_2023-09-05-13-51.json b/common/changes/pcln-popover/fix-storybook-build-2_2023-09-05-13-51.json
new file mode 100644
index 0000000000..4995e090c5
--- /dev/null
+++ b/common/changes/pcln-popover/fix-storybook-build-2_2023-09-05-13-51.json
@@ -0,0 +1,10 @@
+{
+ "changes": [
+ {
+ "packageName": "pcln-popover",
+ "comment": "",
+ "type": "none"
+ }
+ ],
+ "packageName": "pcln-popover"
+}
\ No newline at end of file
diff --git a/common/changes/pcln-slider/fix-storybook-build-2_2023-09-05-13-51.json b/common/changes/pcln-slider/fix-storybook-build-2_2023-09-05-13-51.json
new file mode 100644
index 0000000000..c442fd060e
--- /dev/null
+++ b/common/changes/pcln-slider/fix-storybook-build-2_2023-09-05-13-51.json
@@ -0,0 +1,10 @@
+{
+ "changes": [
+ {
+ "packageName": "pcln-slider",
+ "comment": "",
+ "type": "none"
+ }
+ ],
+ "packageName": "pcln-slider"
+}
\ No newline at end of file
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 5eb0df74c4..fa84dc49b5 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -53,7 +53,7 @@ importers:
version: 17.0.2
styled-components:
specifier: ^5.3.11
- version: 5.3.11(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
+ version: 5.3.11(@babel/core@7.22.5)(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
devDependencies:
'@babel/core':
specifier: ^7.16.7
@@ -125,8 +125,8 @@ importers:
specifier: ^7.0.27
version: 7.0.27(react-dom@17.0.2)(react@17.0.2)
'@storybook/jest':
- specifier: ^0.1.0
- version: 0.1.0
+ specifier: ^0.2.2
+ version: 0.2.2(jest@27.5.1)
'@storybook/react':
specifier: ^7.0.27
version: 7.0.27(react-dom@17.0.2)(react@17.0.2)(typescript@5.1.6)
@@ -210,8 +210,8 @@ importers:
specifier: ^1.2.0
version: 1.3.2
'@storybook/jest':
- specifier: ^0.1.0
- version: 0.1.0
+ specifier: ^0.2.2
+ version: 0.2.2(jest@27.5.1)
'@storybook/testing-library':
specifier: ^0.2.0
version: 0.2.0
@@ -219,8 +219,8 @@ importers:
specifier: ^5.1.2
version: 5.1.2
'@testing-library/jest-dom':
- specifier: ^5.16.5
- version: 5.16.5
+ specifier: ^6.1.2
+ version: 6.1.2(@types/jest@28.1.3)(jest@27.5.1)
'@testing-library/react':
specifier: ^12.1.5
version: 12.1.5(react-dom@17.0.2)(react@17.0.2)
@@ -313,14 +313,14 @@ importers:
specifier: ^7.0.27
version: 7.0.27(react-dom@17.0.2)(react@17.0.2)
'@storybook/jest':
- specifier: ^0.1.0
- version: 0.1.0
+ specifier: ^0.2.2
+ version: 0.2.2(jest@26.6.3)
'@storybook/testing-library':
specifier: ^0.2.0
version: 0.2.0
'@testing-library/jest-dom':
- specifier: ^5.15.0
- version: 5.16.5
+ specifier: ^6.1.2
+ version: 6.1.2(@types/jest@28.1.3)(jest@26.6.3)
'@testing-library/react':
specifier: ^12.1.2
version: 12.1.5(react-dom@17.0.2)(react@17.0.2)
@@ -546,8 +546,8 @@ importers:
specifier: ^7.0.27
version: 7.0.27(react-dom@17.0.2)(react@17.0.2)
'@storybook/jest':
- specifier: ^0.1.0
- version: 0.1.0
+ specifier: ^0.2.2
+ version: 0.2.2(jest@27.5.1)
'@storybook/react':
specifier: ^7.0.27
version: 7.0.27(react-dom@17.0.2)(react@17.0.2)(typescript@5.1.6)
@@ -555,8 +555,8 @@ importers:
specifier: ^0.2.0
version: 0.2.0
'@testing-library/jest-dom':
- specifier: ^5.15.0
- version: 5.16.5
+ specifier: ^6.1.2
+ version: 6.1.2(@types/jest@27.5.2)
'@testing-library/react':
specifier: ^12.1.2
version: 12.1.5(react-dom@17.0.2)(react@17.0.2)
@@ -667,8 +667,8 @@ importers:
specifier: ^1.1.0
version: 1.3.2
'@storybook/jest':
- specifier: ^0.1.0
- version: 0.1.0
+ specifier: ^0.2.2
+ version: 0.2.2(jest@26.6.3)
'@storybook/testing-library':
specifier: ^0.2.0
version: 0.2.0
@@ -676,8 +676,8 @@ importers:
specifier: ^5.5.0
version: 5.5.0
'@testing-library/jest-dom':
- specifier: ^5.15.0
- version: 5.16.5
+ specifier: ^6.1.2
+ version: 6.1.2(@types/jest@28.1.3)(jest@26.6.3)
'@testing-library/react':
specifier: ^12.1.2
version: 12.1.5(react-dom@17.0.2)(react@17.0.2)
@@ -746,14 +746,14 @@ importers:
specifier: ^1.1.0
version: 1.3.2
'@storybook/jest':
- specifier: ^0.1.0
- version: 0.1.0
+ specifier: ^0.2.2
+ version: 0.2.2(jest@26.6.3)
'@storybook/testing-library':
specifier: ^0.2.0
version: 0.2.0
'@testing-library/jest-dom':
- specifier: ^5.15.0
- version: 5.16.5
+ specifier: ^6.1.2
+ version: 6.1.2(@types/jest@28.1.3)(jest@26.6.3)
'@testing-library/react':
specifier: ^12.1.2
version: 12.1.5(react-dom@17.0.2)(react@17.0.2)
@@ -834,8 +834,8 @@ importers:
specifier: ^7.0.27
version: 7.0.27(react-dom@17.0.2)(react@17.0.2)
'@testing-library/jest-dom':
- specifier: ^5.15.0
- version: 5.16.5
+ specifier: ^6.1.2
+ version: 6.1.2(@types/jest@28.1.3)(jest@26.6.3)
'@testing-library/react':
specifier: ^12.1.2
version: 12.1.5(react-dom@17.0.2)(react@17.0.2)
@@ -922,14 +922,14 @@ importers:
specifier: ^7.0.27
version: 7.0.27(react-dom@17.0.2)(react@17.0.2)
'@storybook/jest':
- specifier: ^0.1.0
- version: 0.1.0
+ specifier: ^0.2.2
+ version: 0.2.2(jest@26.6.3)
'@storybook/testing-library':
specifier: ^0.1.0
version: 0.1.0
'@testing-library/jest-dom':
- specifier: ^5.15.0
- version: 5.16.5
+ specifier: ^6.1.2
+ version: 6.1.2(@types/jest@28.1.3)(jest@26.6.3)
'@testing-library/react':
specifier: ^12.1.2
version: 12.1.5(react-dom@17.0.2)(react@17.0.2)
@@ -1034,8 +1034,8 @@ importers:
specifier: ^5.1.5
version: 5.1.5(styled-system@5.1.5)
'@testing-library/jest-dom':
- specifier: ^5.15.0
- version: 5.16.5
+ specifier: ^6.1.2
+ version: 6.1.2(@types/jest@29.5.2)
'@testing-library/react':
specifier: ^12.1.2
version: 12.1.5(react-dom@17.0.2)(react@17.0.2)
@@ -1359,6 +1359,10 @@ packages:
resolution: {integrity: sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==}
dev: true
+ /@adobe/css-tools@4.3.1:
+ resolution: {integrity: sha512-/62yikz7NLScCGAAST5SHdnjaDJQBDq0M2muyRTpf2VQhw6StBg2ALiu73zSJQ4fMVLA+0uBhBHAle7Wg+2kSg==}
+ dev: true
+
/@ampproject/remapping@2.2.1:
resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==}
engines: {node: '>=6.0.0'}
@@ -5818,6 +5822,13 @@ packages:
- supports-color
dev: false
+ /@jest/schemas@28.1.3:
+ resolution: {integrity: sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==}
+ engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
+ dependencies:
+ '@sinclair/typebox': 0.24.51
+ dev: true
+
/@jest/schemas@29.6.0:
resolution: {integrity: sha512-rxLjXyJBTL4LQeJW3aKo0M/+GkCOXsO+8i9Iu7eDb6KwtP65ayoDsitrdPBtujxQ88k4wI2FNYfa6TOGwSn6cQ==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -7275,6 +7286,10 @@ packages:
glob: 7.0.6
dev: false
+ /@sinclair/typebox@0.24.51:
+ resolution: {integrity: sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==}
+ dev: true
+
/@sinclair/typebox@0.27.8:
resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}
@@ -8041,10 +8056,10 @@ packages:
- supports-color
dev: true
- /@storybook/expect@27.5.2-0:
- resolution: {integrity: sha512-cP99mhWN/JeCp7VSIiymvj5tmuMY050iFohvp8Zq+kewKsBSZ6/qpTJAGCCZk6pneTcp4S0Fm5BSqyxzbyJ3gw==}
+ /@storybook/expect@28.1.3-5:
+ resolution: {integrity: sha512-lS1oJnY1qTAxnH87C765NdfvGhksA6hBcbUVI5CHiSbNsEtr456wtg/z+dT9XlPriq1D5t2SgfNL9dBAoIGyIA==}
dependencies:
- '@types/jest': 29.5.3
+ '@types/jest': 28.1.3
dev: true
/@storybook/global@5.0.0:
@@ -8061,13 +8076,30 @@ packages:
'@storybook/preview-api': 7.0.27
dev: true
- /@storybook/jest@0.1.0:
- resolution: {integrity: sha512-TmybnEXlv5Fu2/Hq4nRj7alS9mw4CasLR0RDwaAzS+Vpvu1TC4+j9rh+b1BHtmWebbJh0JMT6mgzPqOyJdgtQA==}
+ /@storybook/jest@0.2.2(jest@26.6.3):
+ resolution: {integrity: sha512-PUfp9WoqUA8NdAmiz3UahUsyAMr+g1Dv3BB0fqJZsE2IuE5o1Mgsv4iLGzFm+ohcQLIDQvwvvbQIpxe8eY7TNw==}
dependencies:
- '@storybook/expect': 27.5.2-0
- '@storybook/instrumenter': 7.0.27
- '@testing-library/jest-dom': 5.16.5
+ '@storybook/expect': 28.1.3-5
+ '@testing-library/jest-dom': 6.1.2(@types/jest@28.1.3)(jest@26.6.3)
+ '@types/jest': 28.1.3
+ jest-mock: 27.5.1
+ transitivePeerDependencies:
+ - '@jest/globals'
+ - jest
+ - vitest
+ dev: true
+
+ /@storybook/jest@0.2.2(jest@27.5.1):
+ resolution: {integrity: sha512-PUfp9WoqUA8NdAmiz3UahUsyAMr+g1Dv3BB0fqJZsE2IuE5o1Mgsv4iLGzFm+ohcQLIDQvwvvbQIpxe8eY7TNw==}
+ dependencies:
+ '@storybook/expect': 28.1.3-5
+ '@testing-library/jest-dom': 6.1.2(@types/jest@28.1.3)(jest@27.5.1)
+ '@types/jest': 28.1.3
jest-mock: 27.5.1
+ transitivePeerDependencies:
+ - '@jest/globals'
+ - jest
+ - vitest
dev: true
/@storybook/manager-api@7.0.27(react-dom@17.0.2)(react@17.0.2):
@@ -8512,13 +8544,116 @@ packages:
pretty-format: 27.5.1
dev: true
- /@testing-library/jest-dom@5.16.5:
- resolution: {integrity: sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==}
- engines: {node: '>=8', npm: '>=6', yarn: '>=1'}
+ /@testing-library/jest-dom@6.1.2(@types/jest@27.5.2):
+ resolution: {integrity: sha512-NP9jl1Q2qDDtx+cqogowtQtmgD2OVs37iMSIsTv5eN5ETRkf26Kj6ugVwA93/gZzzFWQAsgkKkcftDe91BJCkQ==}
+ engines: {node: '>=14', npm: '>=6', yarn: '>=1'}
+ peerDependencies:
+ '@jest/globals': '>= 28'
+ '@types/jest': '>= 28'
+ jest: '>= 28'
+ vitest: '>= 0.32'
+ peerDependenciesMeta:
+ '@jest/globals':
+ optional: true
+ '@types/jest':
+ optional: true
+ jest:
+ optional: true
+ vitest:
+ optional: true
dependencies:
- '@adobe/css-tools': 4.2.0
+ '@adobe/css-tools': 4.3.1
+ '@babel/runtime': 7.22.6
+ '@types/jest': 27.5.2
+ aria-query: 5.3.0
+ chalk: 3.0.0
+ css.escape: 1.5.1
+ dom-accessibility-api: 0.5.16
+ lodash: 4.17.21
+ redent: 3.0.0
+ dev: true
+
+ /@testing-library/jest-dom@6.1.2(@types/jest@28.1.3)(jest@26.6.3):
+ resolution: {integrity: sha512-NP9jl1Q2qDDtx+cqogowtQtmgD2OVs37iMSIsTv5eN5ETRkf26Kj6ugVwA93/gZzzFWQAsgkKkcftDe91BJCkQ==}
+ engines: {node: '>=14', npm: '>=6', yarn: '>=1'}
+ peerDependencies:
+ '@jest/globals': '>= 28'
+ '@types/jest': '>= 28'
+ jest: '>= 28'
+ vitest: '>= 0.32'
+ peerDependenciesMeta:
+ '@jest/globals':
+ optional: true
+ '@types/jest':
+ optional: true
+ jest:
+ optional: true
+ vitest:
+ optional: true
+ dependencies:
+ '@adobe/css-tools': 4.3.1
+ '@babel/runtime': 7.22.6
+ '@types/jest': 28.1.3
+ aria-query: 5.3.0
+ chalk: 3.0.0
+ css.escape: 1.5.1
+ dom-accessibility-api: 0.5.16
+ jest: 26.6.3
+ lodash: 4.17.21
+ redent: 3.0.0
+ dev: true
+
+ /@testing-library/jest-dom@6.1.2(@types/jest@28.1.3)(jest@27.5.1):
+ resolution: {integrity: sha512-NP9jl1Q2qDDtx+cqogowtQtmgD2OVs37iMSIsTv5eN5ETRkf26Kj6ugVwA93/gZzzFWQAsgkKkcftDe91BJCkQ==}
+ engines: {node: '>=14', npm: '>=6', yarn: '>=1'}
+ peerDependencies:
+ '@jest/globals': '>= 28'
+ '@types/jest': '>= 28'
+ jest: '>= 28'
+ vitest: '>= 0.32'
+ peerDependenciesMeta:
+ '@jest/globals':
+ optional: true
+ '@types/jest':
+ optional: true
+ jest:
+ optional: true
+ vitest:
+ optional: true
+ dependencies:
+ '@adobe/css-tools': 4.3.1
'@babel/runtime': 7.22.6
- '@types/testing-library__jest-dom': 5.14.8
+ '@types/jest': 28.1.3
+ aria-query: 5.3.0
+ chalk: 3.0.0
+ css.escape: 1.5.1
+ dom-accessibility-api: 0.5.16
+ jest: 27.5.1
+ lodash: 4.17.21
+ redent: 3.0.0
+ dev: true
+
+ /@testing-library/jest-dom@6.1.2(@types/jest@29.5.2):
+ resolution: {integrity: sha512-NP9jl1Q2qDDtx+cqogowtQtmgD2OVs37iMSIsTv5eN5ETRkf26Kj6ugVwA93/gZzzFWQAsgkKkcftDe91BJCkQ==}
+ engines: {node: '>=14', npm: '>=6', yarn: '>=1'}
+ peerDependencies:
+ '@jest/globals': '>= 28'
+ '@types/jest': '>= 28'
+ jest: '>= 28'
+ vitest: '>= 0.32'
+ peerDependenciesMeta:
+ '@jest/globals':
+ optional: true
+ '@types/jest':
+ optional: true
+ jest:
+ optional: true
+ vitest:
+ optional: true
+ dependencies:
+ '@adobe/css-tools': 4.3.1
+ '@babel/runtime': 7.22.6
+ '@types/jest': 29.5.2
aria-query: 5.3.0
chalk: 3.0.0
css.escape: 1.5.1
@@ -8783,18 +8918,18 @@ packages:
pretty-format: 27.5.1
dev: true
- /@types/jest@29.5.2:
- resolution: {integrity: sha512-mSoZVJF5YzGVCk+FsDxzDuH7s+SCkzrgKZzf0Z0T2WudhBUPoF6ktoTPC4R0ZoCPCV5xUvuU6ias5NvxcBcMMg==}
+ /@types/jest@28.1.3:
+ resolution: {integrity: sha512-Tsbjk8Y2hkBaY/gJsataeb4q9Mubw9EOz7+4RjPkzD5KjTvHHs7cpws22InaoXxAVAhF5HfFbzJjo6oKWqSZLw==}
dependencies:
- expect: 29.6.1
- pretty-format: 29.6.1
+ jest-matcher-utils: 28.1.3
+ pretty-format: 28.1.3
+ dev: true
- /@types/jest@29.5.3:
- resolution: {integrity: sha512-1Nq7YrO/vJE/FYnqYyw0FS8LdrjExSgIiHyKg7xPpn+yi8Q4huZryKnkJatN1ZRH89Kw2v33/8ZMB7DuZeSLlA==}
+ /@types/jest@29.5.2:
+ resolution: {integrity: sha512-mSoZVJF5YzGVCk+FsDxzDuH7s+SCkzrgKZzf0Z0T2WudhBUPoF6ktoTPC4R0ZoCPCV5xUvuU6ias5NvxcBcMMg==}
dependencies:
expect: 29.6.1
pretty-format: 29.6.1
- dev: true
/@types/jsdom@20.0.1:
resolution: {integrity: sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==}
@@ -8962,12 +9097,6 @@ packages:
'@types/jest': 29.5.2
dev: false
- /@types/testing-library__jest-dom@5.14.8:
- resolution: {integrity: sha512-NRfJE9Cgpmu4fx716q9SYmU4jxxhYRU1BQo239Txt/9N3EC745XZX1Yl7h/SBIDlo1ANVOCRB4YDXjaQdoKCHQ==}
- dependencies:
- '@types/jest': 29.5.3
- dev: true
-
/@types/tough-cookie@4.0.2:
resolution: {integrity: sha512-Q5vtl1W5ue16D+nIaW8JWebSSraJVlK+EthKn7e7UcD4KWsaSJ8BqGPXNaPghgtcn/fhvrN17Tv8ksUsQpiplw==}
dev: false
@@ -10171,7 +10300,8 @@ packages:
'@babel/helper-module-imports': 7.22.5
babel-plugin-syntax-jsx: 6.18.0
lodash: 4.17.21
- styled-components: 5.3.11(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
+ styled-components: 5.3.11(@babel/core@7.22.5)(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
+ dev: true
/babel-plugin-styled-components@2.1.3(styled-components@5.3.11):
resolution: {integrity: sha512-jBioLwBVHpOMU4NsueH/ADcHrjS0Y/WTpt2eGVmmuSFNEv2DF3XhcMncuZlbbjxQ4vzxg+yEr6E6TNjrIQbsJQ==}
@@ -11806,6 +11936,11 @@ packages:
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
dev: true
+ /diff-sequences@28.1.1:
+ resolution: {integrity: sha512-FU0iFaH/E23a+a718l8Qa/19bF9p06kgE0KipMOMadwa3SjnaElKzPaUC0vnibs6/B/9ni97s61mcejk8W1fQw==}
+ engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
+ dev: true
+
/diff-sequences@29.4.3:
resolution: {integrity: sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -14871,6 +15006,16 @@ packages:
pretty-format: 27.5.1
dev: true
+ /jest-diff@28.1.3:
+ resolution: {integrity: sha512-8RqP1B/OXzjjTWkqMX67iqgwBVJRgCyKD3L9nq+6ZqJMdvjE8RgHktqZ6jNrkdMT+dJuYNI3rhQpxaz7drJHfw==}
+ engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
+ dependencies:
+ chalk: 4.1.2
+ diff-sequences: 28.1.1
+ jest-get-type: 28.0.2
+ pretty-format: 28.1.3
+ dev: true
+
/jest-diff@29.6.1:
resolution: {integrity: sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -15039,6 +15184,11 @@ packages:
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
dev: true
+ /jest-get-type@28.0.2:
+ resolution: {integrity: sha512-ioj2w9/DxSYHfOm5lJKCdcAmPJzQXmbM/Url3rhlghrPvT3tt+7a/+oXc9azkKmLvoiXjtV83bEWqi+vs5nlPA==}
+ engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
+ dev: true
+
/jest-get-type@29.4.3:
resolution: {integrity: sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -15201,6 +15351,16 @@ packages:
pretty-format: 27.5.1
dev: true
+ /jest-matcher-utils@28.1.3:
+ resolution: {integrity: sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw==}
+ engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
+ dependencies:
+ chalk: 4.1.2
+ jest-diff: 28.1.3
+ jest-get-type: 28.0.2
+ pretty-format: 28.1.3
+ dev: true
+
/jest-matcher-utils@29.6.1:
resolution: {integrity: sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -16618,7 +16778,7 @@ packages:
prop-types: 15.8.1
react-live: 1.12.0(react@17.0.2)
rmdi: 1.0.1(styled-components@5.3.11)
- styled-components: 5.3.11(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
+ styled-components: 5.3.11(@babel/core@7.22.5)(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
transitivePeerDependencies:
- react
dev: false
@@ -18223,6 +18383,16 @@ packages:
react-is: 17.0.2
dev: true
+ /pretty-format@28.1.3:
+ resolution: {integrity: sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==}
+ engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
+ dependencies:
+ '@jest/schemas': 28.1.3
+ ansi-regex: 5.0.1
+ ansi-styles: 5.2.0
+ react-is: 18.2.0
+ dev: true
+
/pretty-format@29.6.1:
resolution: {integrity: sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -19359,7 +19529,7 @@ packages:
peerDependencies:
styled-components: '>=2.0 || >=3.0'
dependencies:
- styled-components: 5.3.11(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
+ styled-components: 5.3.11(@babel/core@7.22.5)(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
styled-system: 2.3.6
dev: false
@@ -20081,6 +20251,7 @@ packages:
/storybook-addon-designs@7.0.0-beta.2(@storybook/addon-docs@7.0.27)(@storybook/addons@7.0.27)(@storybook/api@7.0.27)(@storybook/components@7.0.27)(@storybook/theming@7.0.27)(react-dom@17.0.2)(react@17.0.2):
resolution: {integrity: sha512-ljBNmyCJdPTXhiBSfA1S+GBxtMooW2M7nxlt49OoCRH7jcxZOYQdiI8JYQiMF5Ur0MGakbSci0Xm+JzAvcm02g==}
+ deprecated: Newer versions of this package is available under `@storybook/addon-designs`
peerDependencies:
'@storybook/addon-docs': ^6.4.0 || ^7.0.0
'@storybook/addons': ^6.4.0 || ^7.0.0
@@ -20337,28 +20508,6 @@ packages:
- '@babel/core'
dev: true
- /styled-components@5.3.11(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2):
- resolution: {integrity: sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==}
- engines: {node: '>=10'}
- peerDependencies:
- react: '>= 16.8.0'
- react-dom: '>= 16.8.0'
- react-is: '>= 16.8.0'
- dependencies:
- '@babel/helper-module-imports': 7.22.5
- '@babel/traverse': 7.22.8(supports-color@5.5.0)
- '@emotion/is-prop-valid': 1.2.1
- '@emotion/stylis': 0.8.5
- '@emotion/unitless': 0.7.5
- babel-plugin-styled-components: 1.13.3(styled-components@5.3.11)
- css-to-react-native: 3.2.0
- hoist-non-react-statics: 3.3.2
- react: 17.0.2
- react-dom: 17.0.2(react@17.0.2)
- react-is: 17.0.2
- shallowequal: 1.1.0
- supports-color: 5.5.0
-
/styled-jsx@5.0.0-beta.3(@babel/core@7.22.5)(react@17.0.2):
resolution: {integrity: sha512-HtDDGSFPvmjHIqWf9n8Oo54tAoY/DTplvlyOH2+YOtD80Sp31Ap8ffSmxhgk5EkUoJ7xepdXMGT650mSffWuRA==}
engines: {node: '>= 12.0.0'}
diff --git a/packages/autocomplete/package.json b/packages/autocomplete/package.json
index a967e96158..95c82f15c3 100644
--- a/packages/autocomplete/package.json
+++ b/packages/autocomplete/package.json
@@ -34,10 +34,10 @@
"@priceline/eslint-config": "workspace:*",
"@reach/component-component": "^0.17.0",
"@rushstack/eslint-patch": "^1.2.0",
- "@storybook/jest": "^0.1.0",
+ "@storybook/jest": "^0.2.2",
"@storybook/testing-library": "^0.2.0",
"@styled-system/theme-get": "^5.1.2",
- "@testing-library/jest-dom": "^5.16.5",
+ "@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^12.1.5",
"cat-names": "^3.0.0",
"cross-env": "^7.0.3",
diff --git a/packages/carousel/package.json b/packages/carousel/package.json
index cc64fc8000..19b68d78e9 100644
--- a/packages/carousel/package.json
+++ b/packages/carousel/package.json
@@ -55,9 +55,9 @@
"@priceline/eslint-config": "workspace:*",
"@rushstack/eslint-patch": "^1.3.1",
"@storybook/addon-actions": "^7.0.27",
- "@storybook/jest": "^0.1.0",
+ "@storybook/jest": "^0.2.2",
"@storybook/testing-library": "^0.2.0",
- "@testing-library/jest-dom": "^5.15.0",
+ "@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^7.0.2",
"@types/styled-system": "^5.1.16",
diff --git a/packages/core/package.json b/packages/core/package.json
index 8c900a0602..88e88f98c6 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -101,10 +101,10 @@
"@storybook/addon-docs": "^7.0.27",
"@storybook/addon-interactions": "^7.0.27",
"@storybook/addon-links": "^7.0.27",
- "@storybook/jest": "^0.1.0",
+ "@storybook/jest": "^0.2.2",
"@storybook/react": "^7.0.27",
"@storybook/testing-library": "^0.2.0",
- "@testing-library/jest-dom": "^5.15.0",
+ "@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^7.0.2",
"@types/jest": "^27.5.2",
diff --git a/packages/core/src/Accordion/Accordion.stories.tsx b/packages/core/src/Accordion/Accordion.stories.tsx
index d2c4e85e4c..9c3d3d600d 100644
--- a/packages/core/src/Accordion/Accordion.stories.tsx
+++ b/packages/core/src/Accordion/Accordion.stories.tsx
@@ -61,12 +61,12 @@ export const Basic = {
play: async ({ args, canvasElement }) => {
const canvas = within(canvasElement)
const headerLabel = canvas.getByText('Header Label First Item')
- expect(args.onToggle).not.toHaveBeenCalled()
- expect(canvas.queryAllByText('I am some content')).toHaveLength(3)
+ await expect(args.onToggle).not.toHaveBeenCalled()
+ await expect(canvas.queryAllByText('I am some content')).toHaveLength(3)
await userEvent.click(headerLabel)
- setTimeout(() => {
- expect(canvas.queryAllByText('I am some content')).toHaveLength(0)
- expect(args.onToggle).toHaveBeenCalled()
+ setTimeout(async () => {
+ await expect(canvas.queryAllByText('I am some content')).toHaveLength(0)
+ await expect(args.onToggle).toHaveBeenCalled()
}, 350)
},
render: (args) => ,
@@ -110,16 +110,16 @@ export const TrackStateSingular = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement)
const headerLabel = canvas.getByText('Header Label First Item')
- expect(canvas.queryAllByText('I am some content')).toHaveLength(0)
- expect(canvas.queryAllByText('I am secondary content')).toHaveLength(3)
- expect(canvas.queryByText('Item Open: item-1')).toBeFalsy()
- expect(canvas.queryByText('Item Open: item-2')).toBeTruthy()
+ await expect(canvas.queryAllByText('I am some content')).toHaveLength(0)
+ await expect(canvas.queryAllByText('I am secondary content')).toHaveLength(3)
+ await expect(canvas.queryByText('Item Open: item-1')).toBeFalsy()
+ await expect(canvas.queryByText('Item Open: item-2')).toBeTruthy()
await userEvent.click(headerLabel)
- setTimeout(() => {
- expect(canvas.queryAllByText('I am some content')).toHaveLength(3)
- expect(canvas.queryAllByText('I am secondary content')).toHaveLength(0)
- expect(canvas.queryByText('Item Open: item-1')).toBeTruthy()
- expect(canvas.queryByText('Item Open: item-2')).toBeFalsy()
+ setTimeout(async () => {
+ await expect(canvas.queryAllByText('I am some content')).toHaveLength(3)
+ await expect(canvas.queryAllByText('I am secondary content')).toHaveLength(0)
+ await expect(canvas.queryByText('Item Open: item-1')).toBeTruthy()
+ await expect(canvas.queryByText('Item Open: item-2')).toBeFalsy()
}, 350)
},
render: (args) => {
diff --git a/packages/core/src/ChatActionContainer/ChatActionContainer.stories.tsx b/packages/core/src/ChatActionContainer/ChatActionContainer.stories.tsx
index ec0255ec85..1ae5a5f5dc 100644
--- a/packages/core/src/ChatActionContainer/ChatActionContainer.stories.tsx
+++ b/packages/core/src/ChatActionContainer/ChatActionContainer.stories.tsx
@@ -40,14 +40,14 @@ const threeChatActions = [
export const _TwoChatActions: ChatActionContainerStory = {
play: async ({ args, canvasElement }) => {
const canvas = within(canvasElement)
- expect(canvas.getByText('Yes')).toBeInTheDocument()
- expect(canvas.getByText('No')).toBeInTheDocument()
+ await expect(canvas.getByText('Yes')).toBeInTheDocument()
+ await expect(canvas.getByText('No')).toBeInTheDocument()
await userEvent.click(canvas.getAllByRole('button')[0])
- expect(twoChatActions[0].onClick).toHaveBeenCalled()
+ await expect(twoChatActions[0].onClick).toHaveBeenCalled()
await userEvent.click(canvas.getAllByRole('button')[1])
- expect(twoChatActions[1].onClick).toHaveBeenCalled()
+ await expect(twoChatActions[1].onClick).toHaveBeenCalled()
},
render: (args) => ,
}
@@ -55,18 +55,18 @@ export const _TwoChatActions: ChatActionContainerStory = {
export const _ThreeChatActions: ChatActionContainerStory = {
play: async ({ args, canvasElement }) => {
const canvas = within(canvasElement)
- expect(canvas.getByText('Send a copy of my itinerary')).toBeInTheDocument()
- expect(canvas.getByText('Cancel my Trip')).toBeInTheDocument()
- expect(canvas.getByText('Reset my Password')).toBeInTheDocument()
+ await expect(canvas.getByText('Send a copy of my itinerary')).toBeInTheDocument()
+ await expect(canvas.getByText('Cancel my Trip')).toBeInTheDocument()
+ await expect(canvas.getByText('Reset my Password')).toBeInTheDocument()
await userEvent.click(canvas.getAllByRole('button')[0])
- expect(threeChatActions[0].onClick).toHaveBeenCalled()
+ await expect(threeChatActions[0].onClick).toHaveBeenCalled()
await userEvent.click(canvas.getAllByRole('button')[1])
- expect(threeChatActions[1].onClick).toHaveBeenCalled()
+ await expect(threeChatActions[1].onClick).toHaveBeenCalled()
await userEvent.click(canvas.getAllByRole('button')[2])
- expect(threeChatActions[2].onClick).toHaveBeenCalled()
+ await expect(threeChatActions[2].onClick).toHaveBeenCalled()
},
render: (args) => ,
}
diff --git a/packages/core/src/ChatHeader/ChatHeader.stories.tsx b/packages/core/src/ChatHeader/ChatHeader.stories.tsx
index 6e935cd02c..5fd0920538 100644
--- a/packages/core/src/ChatHeader/ChatHeader.stories.tsx
+++ b/packages/core/src/ChatHeader/ChatHeader.stories.tsx
@@ -35,13 +35,13 @@ export const _ChatHeader: ChatHeaderStory = {
play: async ({ args, canvasElement }) => {
const canvas = within(canvasElement)
- expect(canvas.getByText('Penny')).toBeInTheDocument()
+ await expect(canvas.getByText('Penny')).toBeInTheDocument()
await userEvent.click(canvas.getAllByRole('button')[0])
- expect(args.onMinimize).toHaveBeenCalled()
+ await expect(args.onMinimize).toHaveBeenCalled()
await userEvent.click(canvas.getAllByRole('button')[1])
- expect(args.onClose).toHaveBeenCalled()
+ await expect(args.onClose).toHaveBeenCalled()
},
render: (args) => {Children},
}
diff --git a/packages/core/src/ChatTrigger/ChatTrigger.stories.tsx b/packages/core/src/ChatTrigger/ChatTrigger.stories.tsx
index 8d2ab048e9..57b6798c72 100644
--- a/packages/core/src/ChatTrigger/ChatTrigger.stories.tsx
+++ b/packages/core/src/ChatTrigger/ChatTrigger.stories.tsx
@@ -28,14 +28,14 @@ export const _ChatTrigger = {
const canvas = within(canvasElement)
const button = canvas.getByRole('button')
- expect(canvas.queryByText('Chat with Penny')).not.toBeInTheDocument()
+ await expect(canvas.queryByText('Chat with Penny')).not.toBeInTheDocument()
await userEvent.hover(button)
- expect(canvas.getByText('Chat with Penny')).toBeInTheDocument()
+ await expect(canvas.getByText('Chat with Penny')).toBeInTheDocument()
await userEvent.unhover(button)
- expect(canvas.queryByText('Chat with Penny')).not.toBeInTheDocument()
+ await expect(canvas.queryByText('Chat with Penny')).not.toBeInTheDocument()
await userEvent.click(button)
- expect(args.onClick).toHaveBeenCalled()
+ await expect(args.onClick).toHaveBeenCalled()
},
render: (args) => ,
}
diff --git a/packages/core/src/FloatingActionButton/FloatingActionButton.stories.tsx b/packages/core/src/FloatingActionButton/FloatingActionButton.stories.tsx
index f6f8861c97..6003c2aa64 100644
--- a/packages/core/src/FloatingActionButton/FloatingActionButton.stories.tsx
+++ b/packages/core/src/FloatingActionButton/FloatingActionButton.stories.tsx
@@ -30,7 +30,7 @@ export const _FloatingActionButton = {
const canvas = within(canvasElement)
await userEvent.click(canvas.getByRole('button'))
- expect(args.onClick).toHaveBeenCalled()
+ await expect(args.onClick).toHaveBeenCalled()
},
render: (args) => ,
}
diff --git a/packages/icons/package.json b/packages/icons/package.json
index 9c4b933ca4..78bd7fb383 100644
--- a/packages/icons/package.json
+++ b/packages/icons/package.json
@@ -39,9 +39,9 @@
"@priceline/eslint-config": "workspace:*",
"@rushstack/eslint-patch": "^1.1.0",
"@storybook/testing-library": "^0.2.0",
- "@storybook/jest": "^0.1.0",
+ "@storybook/jest": "^0.2.2",
"@svgr/cli": "^5.5.0",
- "@testing-library/jest-dom": "^5.15.0",
+ "@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^12.1.2",
"cross-env": "^7.0.3",
"eslint": "^8.33.0",
diff --git a/packages/menu/package.json b/packages/menu/package.json
index 5ff85c4aeb..2bb003ab7b 100644
--- a/packages/menu/package.json
+++ b/packages/menu/package.json
@@ -30,10 +30,10 @@
"@babel/core": "^7.16.7",
"@priceline/babel-preset": "workspace:*",
"@priceline/eslint-config": "workspace:*",
- "@storybook/jest": "^0.1.0",
+ "@storybook/jest": "^0.2.2",
"@storybook/testing-library": "^0.2.0",
"@rushstack/eslint-patch": "^1.1.0",
- "@testing-library/jest-dom": "^5.15.0",
+ "@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^12.1.2",
"cross-env": "^7.0.3",
"eslint": "^8.33.0",
diff --git a/packages/modal/package.json b/packages/modal/package.json
index ea01152ab5..b68be6d04c 100644
--- a/packages/modal/package.json
+++ b/packages/modal/package.json
@@ -35,7 +35,7 @@
"@priceline/eslint-config": "workspace:*",
"@rushstack/eslint-patch": "^1.1.0",
"@storybook/addon-actions": "^7.0.27",
- "@testing-library/jest-dom": "^5.15.0",
+ "@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^12.1.2",
"cross-env": "^7.0.3",
"eslint": "^8.33.0",
diff --git a/packages/popover/package.json b/packages/popover/package.json
index 1bdca1c83e..2dc068d0f7 100644
--- a/packages/popover/package.json
+++ b/packages/popover/package.json
@@ -41,8 +41,8 @@
"@rushstack/eslint-patch": "^1.1.0",
"@storybook/addon-actions": "^7.0.27",
"@storybook/testing-library": "^0.1.0",
- "@storybook/jest": "^0.1.0",
- "@testing-library/jest-dom": "^5.15.0",
+ "@storybook/jest": "^0.2.2",
+ "@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^12.1.2",
"cross-env": "^7.0.3",
"eslint": "^8.39.0",
diff --git a/packages/slider/package.json b/packages/slider/package.json
index eb78198b0a..a660eadba4 100644
--- a/packages/slider/package.json
+++ b/packages/slider/package.json
@@ -44,7 +44,7 @@
"@rushstack/eslint-patch": "^1.3.1",
"@styled-system/prop-types": "^5.1.5",
"@rushstack/heft": "~0.50.7",
- "@testing-library/jest-dom": "^5.15.0",
+ "@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^12.1.2",
"@types/jest": "^29.4.0",
"@types/react-test-renderer": "^17.0.2",