Skip to content

Commit

Permalink
feat(storybook-preset): Add storybook-jest (#4229)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjou-tlnd authored Jul 20, 2022
1 parent a859939 commit 55e6501
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-shoes-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/scripts-config-storybook-lib': minor
---

Add @storybook/jest dependency
1 change: 1 addition & 0 deletions tools/scripts-config-storybook-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@storybook/addon-interactions": "^6.5.9",
"@storybook/addon-links": "^6.5.9",
"@storybook/builder-webpack5": "^6.5.9",
"@storybook/jest": "^0.0.10",
"@storybook/manager-webpack5": "^6.5.9",
"@storybook/react": "^6.5.9",
"@storybook/testing-library": "^0.0.13",
Expand Down
29 changes: 23 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3095,6 +3095,13 @@
lodash "^4.17.21"
regenerator-runtime "^0.13.7"

"@storybook/expect@storybook-jest":
version "27.5.2-0"
resolved "https://registry.yarnpkg.com/@storybook/expect/-/expect-27.5.2-0.tgz#131fc4336106805ccd100809a3c2852d31f1da68"
integrity sha512-cP99mhWN/JeCp7VSIiymvj5tmuMY050iFohvp8Zq+kewKsBSZ6/qpTJAGCCZk6pneTcp4S0Fm5BSqyxzbyJ3gw==
dependencies:
"@types/jest" ">=26.0.0"

"@storybook/[email protected]", "@storybook/instrumenter@^6.4.0":
version "6.5.9"
resolved "https://registry.yarnpkg.com/@storybook/instrumenter/-/instrumenter-6.5.9.tgz#885d9dec31b7b7fa6ea29b446105480450e527b8"
Expand All @@ -3106,6 +3113,16 @@
core-js "^3.8.2"
global "^4.4.0"

"@storybook/jest@^0.0.10":
version "0.0.10"
resolved "https://registry.yarnpkg.com/@storybook/jest/-/jest-0.0.10.tgz#4fbc43ebc3ae6cce8232d6bd9b56ef710f481e52"
integrity sha512-qeYLIplpcOUQXboJde5pRCjTvkGmF80jEszRUoNYCNcEPfC2sMK68Wq6Ct8EQj3CoEdJqsK54O2YYh+7D9S+ag==
dependencies:
"@storybook/expect" storybook-jest
"@storybook/instrumenter" "^6.4.0"
"@testing-library/jest-dom" "^5.16.2"
jest-mock "^27.3.0"

"@storybook/[email protected]":
version "6.5.9"
resolved "https://registry.yarnpkg.com/@storybook/manager-webpack4/-/manager-webpack4-6.5.9.tgz#c75d2cced4550c8a786f00b0e57b203d613e706c"
Expand Down Expand Up @@ -3595,7 +3612,7 @@
lz-string "^1.4.4"
pretty-format "^27.0.2"

"@testing-library/jest-dom@^5.16.4":
"@testing-library/jest-dom@^5.16.2", "@testing-library/jest-dom@^5.16.4":
version "5.16.4"
resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.16.4.tgz#938302d7b8b483963a3ae821f1c0808f872245cd"
integrity sha512-Gy+IoFutbMQcky0k+bqqumXZ1cTGswLsFqmNLzNdSKkU9KGV2u9oXhukCbbJ9/LRPKiqwxEE8VpV/+YZlfkPUA==
Expand Down Expand Up @@ -4105,10 +4122,10 @@
dependencies:
"@types/istanbul-lib-report" "*"

"@types/jest@*", "@types/jest@^28.1.5":
version "28.1.5"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-28.1.5.tgz#4337404efa059adbf96c4ac53b28fdc0af514475"
integrity sha512-TLAC2zXxGnohSP3GxgIyJn7yrTeRPDEyVFyCY1NE2wzg392auI+69uk5EPGjUXuhkq/K208J/TWpLG7J8ebIEQ==
"@types/jest@*", "@types/jest@>=26.0.0", "@types/jest@^28.1.5":
version "28.1.6"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-28.1.6.tgz#d6a9cdd38967d2d746861fb5be6b120e38284dd4"
integrity sha512-0RbGAFMfcBJKOmqRazM8L98uokwuwD5F8rHrv/ZMbrZBwVOWZUyPG6VFNscjYr/vjM3Vu4fRrCPbOs42AfemaQ==
dependencies:
jest-matcher-utils "^28.0.0"
pretty-format "^28.0.0"
Expand Down Expand Up @@ -12516,7 +12533,7 @@ jest-message-util@^28.1.1:
slash "^3.0.0"
stack-utils "^2.0.3"

jest-mock@^27.0.6:
jest-mock@^27.0.6, jest-mock@^27.3.0:
version "27.5.1"
resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.5.1.tgz#19948336d49ef4d9c52021d34ac7b5f36ff967d6"
integrity sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==
Expand Down

0 comments on commit 55e6501

Please sign in to comment.