From 2a030259b72f4fafc23e8c059eb148bbb06918eb Mon Sep 17 00:00:00 2001 From: f440 Date: Tue, 2 Apr 2024 17:48:52 +0900 Subject: [PATCH] chore: Migrate storybook testing library (#4525) --- package.json | 3 +- pnpm-lock.yaml | 209 ++++++++++-------- .../VRTAccordionPanel.stories.tsx | 2 +- src/components/AppNavi/VRTAppNavi.stories.tsx | 2 +- .../VRTBottomFixedArea.stories.tsx | 2 +- .../Calendar/VRTCalendar.stories.tsx | 2 +- .../ComboBox/VRTComboBox.stories.tsx | 2 +- .../DatePicker/VRTDatePicker.stories.tsx | 2 +- src/components/Dialog/VRTDialog.stories.tsx | 2 +- src/components/Dropdown/Dropdown.stories.tsx | 2 +- .../VRTDropdownMenuButton.stories.tsx | 2 +- .../VRTFilterDropdown.stories.tsx | 2 +- .../Dropdown/VRTDropdown.stories.tsx | 2 +- src/components/Header/VRTHeader.stories.tsx | 2 +- .../SearchInput/VRTSearchInput.stories.tsx | 2 +- .../LineClamp/VRTLineClamp.stories.tsx | 2 +- .../VRTNotificationBar.stories.tsx | 2 +- .../Pagination/Pagination.stories.tsx | 2 +- .../Pagination/VRTPagination.stories.tsx | 2 +- src/components/TabBar/TabBar.stories.tsx | 2 +- src/components/TabBar/VRTTabBar.stories.tsx | 2 +- .../TextLink/VRTTextLink.stories.tsx | 2 +- src/components/Textarea/Textarea.stories.tsx | 2 +- src/components/Tooltip/Tooltip.stories.tsx | 2 +- src/components/Tooltip/VRTTooltip.stories.tsx | 2 +- 25 files changed, 135 insertions(+), 123 deletions(-) diff --git a/package.json b/package.json index 38aca99814..c8e923e8c0 100644 --- a/package.json +++ b/package.json @@ -31,12 +31,11 @@ "@storybook/addon-styling": "^1.3.7", "@storybook/addons": "^7.6.17", "@storybook/cli": "^7.6.17", - "@storybook/jest": "^0.2.3", "@storybook/react": "^7.6.17", "@storybook/react-webpack5": "^7.6.17", "@storybook/source-loader": "^7.6.17", + "@storybook/test": "^7.6.17", "@storybook/test-runner": "^0.17.0", - "@storybook/testing-library": "^0.2.2", "@storybook/theming": "^7.6.17", "@swc/core": "^1.4.11", "@swc/jest": "^0.2.36", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 387a9504d2..882d43d233 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -89,9 +89,6 @@ devDependencies: '@storybook/cli': specifier: ^7.6.17 version: 7.6.17 - '@storybook/jest': - specifier: ^0.2.3 - version: 0.2.3(jest@29.7.0) '@storybook/react': specifier: ^7.6.17 version: 7.6.17(react-dom@18.2.0)(react@18.2.0)(typescript@5.4.3) @@ -101,12 +98,12 @@ devDependencies: '@storybook/source-loader': specifier: ^7.6.17 version: 7.6.17 + '@storybook/test': + specifier: ^7.6.17 + version: 7.6.17(@types/jest@29.5.12)(jest@29.7.0) '@storybook/test-runner': specifier: ^0.17.0 version: 0.17.0(@types/node@20.12.2)(ts-node@10.9.2) - '@storybook/testing-library': - specifier: ^0.2.2 - version: 0.2.2 '@storybook/theming': specifier: ^7.6.17 version: 7.6.17(react-dom@18.2.0)(react@18.2.0) @@ -2534,13 +2531,6 @@ packages: - supports-color dev: true - /@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.20 - dev: true - /@jest/schemas@29.6.3: resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -3346,10 +3336,6 @@ packages: resolution: {integrity: sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==} dev: true - /@sinclair/typebox@0.24.20: - resolution: {integrity: sha512-kVaO5aEFZb33nPMTZBxiPEkY+slxiPtqC7QX8f9B3eGOMBvEfuMfxp9DSTTCsRJPumPKjrge4yagyssO4q6qzQ==} - dev: true - /@sinclair/typebox@0.27.8: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true @@ -4098,27 +4084,20 @@ packages: - supports-color dev: true - /@storybook/expect@28.1.3-5: - resolution: {integrity: sha512-lS1oJnY1qTAxnH87C765NdfvGhksA6hBcbUVI5CHiSbNsEtr456wtg/z+dT9XlPriq1D5t2SgfNL9dBAoIGyIA==} - dependencies: - '@types/jest': 28.1.3 - dev: true - /@storybook/global@5.0.0: resolution: {integrity: sha512-FcOqPAXACP0I3oJ/ws6/rrPT9WGhu915Cg8D02a9YxLo0DE9zI+a9A5gRGvmQ09fiWPukqI8ZAEoQEdWUKMQdQ==} dev: true - /@storybook/jest@0.2.3(jest@29.7.0): - resolution: {integrity: sha512-ov5izrmbAFObzKeh9AOC5MlmFxAcf0o5i6YFGae9sDx6DGh6alXsRM+chIbucVkUwVHVlSzdfbLDEFGY/ShaYw==} + /@storybook/instrumenter@7.6.17: + resolution: {integrity: sha512-zTLIPTt1fvlWgkIVUyQpF327iVE+EiPdpM0Or0aARaNfIikPRBTcjU+6cK96E+Ust2E1qKajEjIuv4i4lLQPng==} dependencies: - '@storybook/expect': 28.1.3-5 - '@testing-library/jest-dom': 6.1.2(@types/jest@28.1.3)(jest@29.7.0) - '@types/jest': 28.1.3 - jest-mock: 27.5.1 - transitivePeerDependencies: - - '@jest/globals' - - jest - - vitest + '@storybook/channels': 7.6.17 + '@storybook/client-logger': 7.6.17 + '@storybook/core-events': 7.6.17 + '@storybook/global': 5.0.0 + '@storybook/preview-api': 7.6.17 + '@vitest/utils': 0.34.7 + util: 0.12.5 dev: true /@storybook/manager-api@7.4.6(react-dom@18.2.0)(react@18.2.0): @@ -4471,12 +4450,27 @@ packages: - ts-node dev: true - /@storybook/testing-library@0.2.2: - resolution: {integrity: sha512-L8sXFJUHmrlyU2BsWWZGuAjv39Jl1uAqUHdxmN42JY15M4+XCMjGlArdCCjDe1wpTSW6USYISA9axjZojgtvnw==} + /@storybook/test@7.6.17(@types/jest@29.5.12)(jest@29.7.0): + resolution: {integrity: sha512-WGrmUUtKiuq3bzDsN4MUvluGcX120jwczMik1GDTyxS+JBoe7P0t2Y8dDuVs/l3nZd1J7qY4z0RGxMDYqONIOw==} dependencies: - '@testing-library/dom': 9.3.1 - '@testing-library/user-event': 14.5.1(@testing-library/dom@9.3.1) - ts-dedent: 2.2.0 + '@storybook/client-logger': 7.6.17 + '@storybook/core-events': 7.6.17 + '@storybook/instrumenter': 7.6.17 + '@storybook/preview-api': 7.6.17 + '@testing-library/dom': 9.3.4 + '@testing-library/jest-dom': 6.4.2(@types/jest@29.5.12)(jest@29.7.0) + '@testing-library/user-event': 14.3.0(@testing-library/dom@9.3.4) + '@types/chai': 4.3.14 + '@vitest/expect': 0.34.7 + '@vitest/spy': 0.34.7 + chai: 4.4.1 + util: 0.12.5 + transitivePeerDependencies: + - '@jest/globals' + - '@types/bun' + - '@types/jest' + - jest + - vitest dev: true /@storybook/theming@7.4.6(react-dom@18.2.0)(react@18.2.0): @@ -4655,8 +4649,8 @@ packages: /@swc/types@0.1.5: resolution: {integrity: sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==} - /@testing-library/dom@9.3.1: - resolution: {integrity: sha512-0DGPd9AR3+iDTjGoMpxIkAsUihHZ3Ai6CneU6bRRrffXMgzCdlNk43jTrD2/5LT6CBb3MWTP8v510JzYtahD2w==} + /@testing-library/dom@9.3.4: + resolution: {integrity: sha512-FlS4ZWlp97iiNWig0Muq8p+3rVDjRiYE+YKGbAqXOu9nwJFFOdL00kFpz42M+4huzYi86vAK1sOOfyOG45muIQ==} engines: {node: '>=14'} dependencies: '@babel/code-frame': 7.24.2 @@ -4669,17 +4663,20 @@ packages: pretty-format: 27.5.1 dev: true - /@testing-library/jest-dom@6.1.2(@types/jest@28.1.3)(jest@29.7.0): - resolution: {integrity: sha512-NP9jl1Q2qDDtx+cqogowtQtmgD2OVs37iMSIsTv5eN5ETRkf26Kj6ugVwA93/gZzzFWQAsgkKkcftDe91BJCkQ==} + /@testing-library/jest-dom@6.4.2(@types/jest@29.5.12)(jest@29.7.0): + resolution: {integrity: sha512-CzqH0AFymEMG48CpzXFriYYkOjk6ZGPCLMhW9e9jg3KMCn5OfJecF8GtGW7yGfR/IgCe3SX8BSwjdzI6BBbZLw==} engines: {node: '>=14', npm: '>=6', yarn: '>=1'} peerDependencies: '@jest/globals': '>= 28' + '@types/bun': latest '@types/jest': '>= 28' jest: '>= 28' vitest: '>= 0.32' peerDependenciesMeta: '@jest/globals': optional: true + '@types/bun': + optional: true '@types/jest': optional: true jest: @@ -4689,11 +4686,11 @@ packages: dependencies: '@adobe/css-tools': 4.3.2 '@babel/runtime': 7.24.0 - '@types/jest': 28.1.3 + '@types/jest': 29.5.12 aria-query: 5.3.0 chalk: 3.0.0 css.escape: 1.5.1 - dom-accessibility-api: 0.5.14 + dom-accessibility-api: 0.6.3 jest: 29.7.0(@types/node@20.12.2)(ts-node@10.9.2) lodash: 4.17.21 redent: 3.0.0 @@ -4707,19 +4704,19 @@ packages: react-dom: ^18.2.0 dependencies: '@babel/runtime': 7.24.0 - '@testing-library/dom': 9.3.1 + '@testing-library/dom': 9.3.4 '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) dev: true - /@testing-library/user-event@14.5.1(@testing-library/dom@9.3.1): - resolution: {integrity: sha512-UCcUKrUYGj7ClomOo2SpNVvx4/fkd/2BbIHDCle8A0ax+P3bU7yJwDBDrS6ZwdTMARWTGODX1hEsCcO+7beJjg==} + /@testing-library/user-event@14.3.0(@testing-library/dom@9.3.4): + resolution: {integrity: sha512-P02xtBBa8yMaLhK8CzJCIns8rqwnF6FxhR9zs810flHOBXUYCFjLd8Io1rQrAkQRWEmW2PGdZIEdMxf/KLsqFA==} engines: {node: '>=12', npm: '>=6'} peerDependencies: '@testing-library/dom': '>=7.21.4' dependencies: - '@testing-library/dom': 9.3.1 + '@testing-library/dom': 9.3.4 dev: true /@tootallnate/once@2.0.0: @@ -4783,6 +4780,10 @@ packages: '@types/node': 20.12.2 dev: true + /@types/chai@4.3.14: + resolution: {integrity: sha512-Wj71sXE4Q4AkGdG9Tvq1u/fquNz9EdG4LIJMwVVII7ashjD/8cf8fyIfJAjRr6YcsXnSE8cOGQPq1gqeR8z+3w==} + dev: true + /@types/connect@3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: @@ -4913,13 +4914,6 @@ packages: '@types/istanbul-lib-report': 3.0.0 dev: true - /@types/jest@28.1.3: - resolution: {integrity: sha512-Tsbjk8Y2hkBaY/gJsataeb4q9Mubw9EOz7+4RjPkzD5KjTvHHs7cpws22InaoXxAVAhF5HfFbzJjo6oKWqSZLw==} - dependencies: - jest-matcher-utils: 28.1.3 - pretty-format: 28.1.3 - dev: true - /@types/jest@29.5.12: resolution: {integrity: sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==} dependencies: @@ -5333,6 +5327,28 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true + /@vitest/expect@0.34.7: + resolution: {integrity: sha512-G9iEtwrD6ZQ4MVHZufif9Iqz3eLtuwBBNx971fNAGPaugM7ftAWjQN+ob2zWhtzURp8RK3zGXOxVb01mFo3zAQ==} + dependencies: + '@vitest/spy': 0.34.7 + '@vitest/utils': 0.34.7 + chai: 4.4.1 + dev: true + + /@vitest/spy@0.34.7: + resolution: {integrity: sha512-NMMSzOY2d8L0mcOt4XcliDOS1ISyGlAXuQtERWVOoVHnKwmG+kKhinAiGw3dTtMQWybfa89FG8Ucg9tiC/FhTQ==} + dependencies: + tinyspy: 2.2.1 + dev: true + + /@vitest/utils@0.34.7: + resolution: {integrity: sha512-ziAavQLpCYS9sLOorGrFFKmy2gnfiNU0ZJ15TsMz/K92NAPS/rp9K4z6AJQQk5Y8adCy4Iwpxy7pQumQ/psnRg==} + dependencies: + diff-sequences: 29.6.3 + loupe: 2.3.7 + pretty-format: 29.7.0 + dev: true + /@webassemblyjs/ast@1.12.1: resolution: {integrity: sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==} dependencies: @@ -6494,13 +6510,26 @@ packages: engines: {node: '>=4'} dependencies: assertion-error: 1.1.0 - check-error: 1.0.2 + check-error: 1.0.3 deep-eql: 3.0.1 get-func-name: 2.0.2 pathval: 1.1.1 type-detect: 4.0.8 dev: true + /chai@4.4.1: + resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==} + engines: {node: '>=4'} + dependencies: + assertion-error: 1.1.0 + check-error: 1.0.3 + deep-eql: 4.1.3 + get-func-name: 2.0.2 + loupe: 2.3.7 + pathval: 1.1.1 + type-detect: 4.0.8 + dev: true + /chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} @@ -6541,8 +6570,10 @@ packages: engines: {node: '>=12.20'} dev: true - /check-error@1.0.2: - resolution: {integrity: sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==} + /check-error@1.0.3: + resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==} + dependencies: + get-func-name: 2.0.2 dev: true /chokidar@3.5.3: @@ -7484,6 +7515,13 @@ packages: type-detect: 4.0.8 dev: true + /deep-eql@4.1.3: + resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==} + engines: {node: '>=6'} + dependencies: + type-detect: 4.0.8 + dev: true + /deep-equal@2.2.0: resolution: {integrity: sha512-RdpzE0Hv4lhowpIUKKMJfeH6C1pXdtT1/it80ubgWqwI3qpuxUBpC1S4hnHg+zjnuOoDkzUtUCEEkG+XG5l3Mw==} dependencies: @@ -7683,11 +7721,6 @@ packages: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} dev: false - /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.6.3: resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -7732,6 +7765,10 @@ packages: resolution: {integrity: sha512-NMt+m9zFMPZe0JcY9gN224Qvk6qLIdqex29clBvc/y75ZBX9YA9wNK3frsYvu2DI1xcCIwxwnX+TlsJ2DSOADg==} dev: true + /dom-accessibility-api@0.6.3: + resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==} + dev: true + /dom-converter@0.2.0: resolution: {integrity: sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==} dependencies: @@ -10576,16 +10613,6 @@ packages: - supports-color 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.7.0: resolution: {integrity: sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -10649,11 +10676,6 @@ packages: jest-util: 29.7.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.6.3: resolution: {integrity: sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -10696,16 +10718,6 @@ packages: pretty-format: 29.7.0 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.7.0: resolution: {integrity: sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -11525,6 +11537,12 @@ packages: dependencies: js-tokens: 4.0.0 + /loupe@2.3.7: + resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} + dependencies: + get-func-name: 2.0.2 + dev: true + /lower-case@2.0.2: resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} dependencies: @@ -13001,16 +13019,6 @@ 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.7.0: resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -15169,6 +15177,11 @@ packages: resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} dev: true + /tinyspy@2.2.1: + resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} + engines: {node: '>=14.0.0'} + dev: true + /tmp@0.0.28: resolution: {integrity: sha512-c2mmfiBmND6SOVxzogm1oda0OJ1HZVIk/5n26N59dDTh80MUeavpiCls4PGAdkX1PFkKokLpcf7prSjCeXLsJg==} engines: {node: '>=0.4.0'} diff --git a/src/components/AccordionPanel/VRTAccordionPanel.stories.tsx b/src/components/AccordionPanel/VRTAccordionPanel.stories.tsx index 2077c0160a..d2a902bfc0 100644 --- a/src/components/AccordionPanel/VRTAccordionPanel.stories.tsx +++ b/src/components/AccordionPanel/VRTAccordionPanel.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import React from 'react' import styled from 'styled-components' diff --git a/src/components/AppNavi/VRTAppNavi.stories.tsx b/src/components/AppNavi/VRTAppNavi.stories.tsx index ad1deb05ef..9822fcb81a 100644 --- a/src/components/AppNavi/VRTAppNavi.stories.tsx +++ b/src/components/AppNavi/VRTAppNavi.stories.tsx @@ -1,6 +1,6 @@ import { action } from '@storybook/addon-actions' import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import React, { FC, ReactNode } from 'react' import styled, { css } from 'styled-components' diff --git a/src/components/BottomFixedArea/VRTBottomFixedArea.stories.tsx b/src/components/BottomFixedArea/VRTBottomFixedArea.stories.tsx index af6cf58789..2758452410 100644 --- a/src/components/BottomFixedArea/VRTBottomFixedArea.stories.tsx +++ b/src/components/BottomFixedArea/VRTBottomFixedArea.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { within } from '@storybook/testing-library' +import { within } from '@storybook/test' import React from 'react' import styled from 'styled-components' diff --git a/src/components/Calendar/VRTCalendar.stories.tsx b/src/components/Calendar/VRTCalendar.stories.tsx index 7382b736e3..c7f1575311 100644 --- a/src/components/Calendar/VRTCalendar.stories.tsx +++ b/src/components/Calendar/VRTCalendar.stories.tsx @@ -1,6 +1,6 @@ import { action } from '@storybook/addon-actions' import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import React, { useState } from 'react' import styled from 'styled-components' diff --git a/src/components/ComboBox/VRTComboBox.stories.tsx b/src/components/ComboBox/VRTComboBox.stories.tsx index 2615818477..e3001c8ccc 100644 --- a/src/components/ComboBox/VRTComboBox.stories.tsx +++ b/src/components/ComboBox/VRTComboBox.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import React from 'react' import styled from 'styled-components' diff --git a/src/components/DatePicker/VRTDatePicker.stories.tsx b/src/components/DatePicker/VRTDatePicker.stories.tsx index 4e6ae293d9..f684699e9d 100644 --- a/src/components/DatePicker/VRTDatePicker.stories.tsx +++ b/src/components/DatePicker/VRTDatePicker.stories.tsx @@ -1,6 +1,6 @@ import { action } from '@storybook/addon-actions' import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import React from 'react' import styled from 'styled-components' diff --git a/src/components/Dialog/VRTDialog.stories.tsx b/src/components/Dialog/VRTDialog.stories.tsx index dbc51b7349..23c58f9d86 100644 --- a/src/components/Dialog/VRTDialog.stories.tsx +++ b/src/components/Dialog/VRTDialog.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import * as React from 'react' import styled from 'styled-components' diff --git a/src/components/Dropdown/Dropdown.stories.tsx b/src/components/Dropdown/Dropdown.stories.tsx index 7b4fc3e1f2..f9635d4185 100644 --- a/src/components/Dropdown/Dropdown.stories.tsx +++ b/src/components/Dropdown/Dropdown.stories.tsx @@ -1,6 +1,6 @@ import { action } from '@storybook/addon-actions' import { Story } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import * as React from 'react' import styled, { css } from 'styled-components' diff --git a/src/components/Dropdown/DropdownMenuButton/VRTDropdownMenuButton.stories.tsx b/src/components/Dropdown/DropdownMenuButton/VRTDropdownMenuButton.stories.tsx index 92124e1334..7ed31259ff 100644 --- a/src/components/Dropdown/DropdownMenuButton/VRTDropdownMenuButton.stories.tsx +++ b/src/components/Dropdown/DropdownMenuButton/VRTDropdownMenuButton.stories.tsx @@ -1,5 +1,5 @@ import { Meta, StoryObj } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import * as React from 'react' import styled from 'styled-components' diff --git a/src/components/Dropdown/FilterDropdown/VRTFilterDropdown.stories.tsx b/src/components/Dropdown/FilterDropdown/VRTFilterDropdown.stories.tsx index 681597b6bc..d012d149c1 100644 --- a/src/components/Dropdown/FilterDropdown/VRTFilterDropdown.stories.tsx +++ b/src/components/Dropdown/FilterDropdown/VRTFilterDropdown.stories.tsx @@ -1,5 +1,5 @@ import { Meta, StoryObj } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import * as React from 'react' import styled from 'styled-components' diff --git a/src/components/Dropdown/VRTDropdown.stories.tsx b/src/components/Dropdown/VRTDropdown.stories.tsx index 95dcb59ded..998e122ba1 100644 --- a/src/components/Dropdown/VRTDropdown.stories.tsx +++ b/src/components/Dropdown/VRTDropdown.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import * as React from 'react' import styled from 'styled-components' diff --git a/src/components/Header/VRTHeader.stories.tsx b/src/components/Header/VRTHeader.stories.tsx index c95eda3d5e..c843aaa0cc 100644 --- a/src/components/Header/VRTHeader.stories.tsx +++ b/src/components/Header/VRTHeader.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import React from 'react' import styled from 'styled-components' diff --git a/src/components/Input/SearchInput/VRTSearchInput.stories.tsx b/src/components/Input/SearchInput/VRTSearchInput.stories.tsx index 40add55833..7f420f5b24 100644 --- a/src/components/Input/SearchInput/VRTSearchInput.stories.tsx +++ b/src/components/Input/SearchInput/VRTSearchInput.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import * as React from 'react' import styled, { css } from 'styled-components' diff --git a/src/components/LineClamp/VRTLineClamp.stories.tsx b/src/components/LineClamp/VRTLineClamp.stories.tsx index 898a5eab32..f7c4c2915d 100644 --- a/src/components/LineClamp/VRTLineClamp.stories.tsx +++ b/src/components/LineClamp/VRTLineClamp.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import React from 'react' import styled from 'styled-components' diff --git a/src/components/NotificationBar/VRTNotificationBar.stories.tsx b/src/components/NotificationBar/VRTNotificationBar.stories.tsx index f8faa5fae5..6a0496e619 100644 --- a/src/components/NotificationBar/VRTNotificationBar.stories.tsx +++ b/src/components/NotificationBar/VRTNotificationBar.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import React from 'react' import styled from 'styled-components' diff --git a/src/components/Pagination/Pagination.stories.tsx b/src/components/Pagination/Pagination.stories.tsx index 099834f940..34dde82152 100644 --- a/src/components/Pagination/Pagination.stories.tsx +++ b/src/components/Pagination/Pagination.stories.tsx @@ -1,6 +1,6 @@ import { action } from '@storybook/addon-actions' import { StoryFn } from '@storybook/react' -import { userEvent } from '@storybook/testing-library' +import { userEvent } from '@storybook/test' import React, { useState } from 'react' import styled from 'styled-components' diff --git a/src/components/Pagination/VRTPagination.stories.tsx b/src/components/Pagination/VRTPagination.stories.tsx index a285bf479f..5675f6acbd 100644 --- a/src/components/Pagination/VRTPagination.stories.tsx +++ b/src/components/Pagination/VRTPagination.stories.tsx @@ -1,6 +1,6 @@ import { action } from '@storybook/addon-actions' import { StoryFn } from '@storybook/react' -import { fireEvent, within } from '@storybook/testing-library' +import { fireEvent, within } from '@storybook/test' import React from 'react' import styled from 'styled-components' diff --git a/src/components/TabBar/TabBar.stories.tsx b/src/components/TabBar/TabBar.stories.tsx index 97eeecde38..926f7aa46f 100644 --- a/src/components/TabBar/TabBar.stories.tsx +++ b/src/components/TabBar/TabBar.stories.tsx @@ -1,6 +1,6 @@ import { action } from '@storybook/addon-actions' import { StoryFn } from '@storybook/react' -import { userEvent } from '@storybook/testing-library' +import { userEvent } from '@storybook/test' import * as React from 'react' import { Stack } from '../Layout' diff --git a/src/components/TabBar/VRTTabBar.stories.tsx b/src/components/TabBar/VRTTabBar.stories.tsx index 8b884c2c7c..96e21e4147 100644 --- a/src/components/TabBar/VRTTabBar.stories.tsx +++ b/src/components/TabBar/VRTTabBar.stories.tsx @@ -1,6 +1,6 @@ import { action } from '@storybook/addon-actions' import { StoryFn } from '@storybook/react' -import { fireEvent, within } from '@storybook/testing-library' +import { fireEvent, within } from '@storybook/test' import React from 'react' import styled from 'styled-components' diff --git a/src/components/TextLink/VRTTextLink.stories.tsx b/src/components/TextLink/VRTTextLink.stories.tsx index 86d1d231c1..33b461b77f 100644 --- a/src/components/TextLink/VRTTextLink.stories.tsx +++ b/src/components/TextLink/VRTTextLink.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { within } from '@storybook/testing-library' +import { within } from '@storybook/test' import * as React from 'react' import styled, { css } from 'styled-components' diff --git a/src/components/Textarea/Textarea.stories.tsx b/src/components/Textarea/Textarea.stories.tsx index 78c8e48d73..676a061c4a 100644 --- a/src/components/Textarea/Textarea.stories.tsx +++ b/src/components/Textarea/Textarea.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { userEvent, within } from '@storybook/testing-library' +import { userEvent, within } from '@storybook/test' import React, { useState } from 'react' import styled from 'styled-components' diff --git a/src/components/Tooltip/Tooltip.stories.tsx b/src/components/Tooltip/Tooltip.stories.tsx index 709a997389..c4d7249474 100644 --- a/src/components/Tooltip/Tooltip.stories.tsx +++ b/src/components/Tooltip/Tooltip.stories.tsx @@ -1,5 +1,5 @@ import { Story } from '@storybook/react' -import { userEvent } from '@storybook/testing-library' +import { userEvent } from '@storybook/test' import * as React from 'react' import { useSyncExternalStore } from 'react' import styled from 'styled-components' diff --git a/src/components/Tooltip/VRTTooltip.stories.tsx b/src/components/Tooltip/VRTTooltip.stories.tsx index 6bbad88ad5..7b1b022e37 100644 --- a/src/components/Tooltip/VRTTooltip.stories.tsx +++ b/src/components/Tooltip/VRTTooltip.stories.tsx @@ -1,5 +1,5 @@ import { StoryFn } from '@storybook/react' -import { userEvent } from '@storybook/testing-library' +import { userEvent } from '@storybook/test' import * as React from 'react' import styled from 'styled-components'