Skip to content

Commit

Permalink
update storybook testing packages to next
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jun 19, 2023
1 parent 71f73b4 commit 91c4339
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 276 deletions.
4 changes: 2 additions & 2 deletions code/addons/interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
},
"devDependencies": {
"@devtools-ds/object-inspector": "^1.1.2",
"@storybook/jest": "future",
"@storybook/testing-library": "0.1.1--canary.958fe40.0",
"@storybook/jest": "next",
"@storybook/testing-library": "next",
"@types/node": "^16.0.0",
"formik": "^2.2.9",
"typescript": "~4.9.3"
Expand Down
5 changes: 1 addition & 4 deletions code/lib/cli/src/generators/baseGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,7 @@ export async function baseGenerator(

if (hasInteractiveStories(rendererId)) {
addons.push('@storybook/addon-interactions');
addonPackages.push(
'@storybook/addon-interactions',
'@storybook/testing-library@0.1.1--canary.958fe40.0'
);
addonPackages.push('@storybook/addon-interactions', '@storybook/testing-library@^0.2.0-next.0');
}

const files = await fse.readdir(process.cwd());
Expand Down
4 changes: 2 additions & 2 deletions code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"@storybook/html-vite": "workspace:*",
"@storybook/html-webpack5": "workspace:*",
"@storybook/instrumenter": "workspace:*",
"@storybook/jest": "future",
"@storybook/jest": "next",
"@storybook/linter-config": "^3.1.2",
"@storybook/manager": "workspace:*",
"@storybook/manager-api": "workspace:*",
Expand Down Expand Up @@ -184,7 +184,7 @@
"@storybook/svelte": "workspace:*",
"@storybook/svelte-webpack5": "workspace:*",
"@storybook/telemetry": "workspace:*",
"@storybook/testing-library": "0.1.1--canary.958fe40.0",
"@storybook/testing-library": "next",
"@storybook/theming": "workspace:*",
"@storybook/types": "workspace:*",
"@storybook/vue": "workspace:*",
Expand Down
113 changes: 12 additions & 101 deletions code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5318,10 +5318,10 @@ __metadata:
"@storybook/core-events": 7.1.0-alpha.36
"@storybook/global": ^5.0.0
"@storybook/instrumenter": 7.1.0-alpha.36
"@storybook/jest": future
"@storybook/jest": next
"@storybook/manager-api": 7.1.0-alpha.36
"@storybook/preview-api": 7.1.0-alpha.36
"@storybook/testing-library": 0.1.1--canary.958fe40.0
"@storybook/testing-library": next
"@storybook/theming": 7.1.0-alpha.36
"@storybook/types": 7.1.0-alpha.36
"@types/node": ^16.0.0
Expand Down Expand Up @@ -5955,21 +5955,6 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/channel-postmessage@npm:7.1.0-alpha.29":
version: 7.1.0-alpha.29
resolution: "@storybook/channel-postmessage@npm:7.1.0-alpha.29"
dependencies:
"@storybook/channels": 7.1.0-alpha.29
"@storybook/client-logger": 7.1.0-alpha.29
"@storybook/core-events": 7.1.0-alpha.29
"@storybook/global": ^5.0.0
qs: ^6.10.0
telejson: ^7.0.3
tiny-invariant: ^1.3.1
checksum: 1e3002cc791026923d5961ce373b8208a95c50d11e3ea8b748a79c05a5744128aac42d9a3d1cdd9f9ad61827e64227fd0b4246cc7b42c834e3702a3182e87eab
languageName: node
linkType: hard

"@storybook/channel-websocket@workspace:*, @storybook/channel-websocket@workspace:deprecated/channel-websocket":
version: 0.0.0-use.local
resolution: "@storybook/channel-websocket@workspace:deprecated/channel-websocket"
Expand All @@ -5995,13 +5980,6 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/channels@npm:7.1.0-alpha.29":
version: 7.1.0-alpha.29
resolution: "@storybook/channels@npm:7.1.0-alpha.29"
checksum: 62c4b7f3852354dfc9013b5d2f51524325351772690765abefaba720c573abae230149c793d3424c62f58cf8ea0897fbd73aeb17daa511fa18fab142dcf31e82
languageName: node
linkType: hard

"@storybook/cli@7.1.0-alpha.36, @storybook/cli@workspace:*, @storybook/cli@workspace:lib/cli":
version: 0.0.0-use.local
resolution: "@storybook/cli@workspace:lib/cli"
Expand Down Expand Up @@ -6077,15 +6055,6 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/client-logger@npm:7.1.0-alpha.29, @storybook/client-logger@npm:future":
version: 7.1.0-alpha.29
resolution: "@storybook/client-logger@npm:7.1.0-alpha.29"
dependencies:
"@storybook/global": ^5.0.0
checksum: 928cf347346cf85a747216f2387cc240ed2395d508358be4ed93d0319af1a25e326f8456125feef923f6d014000a2bf95cf43140cc4fcddd510a852478f05f39
languageName: node
linkType: hard

"@storybook/codemod@7.1.0-alpha.36, @storybook/codemod@workspace:*, @storybook/codemod@workspace:lib/codemod":
version: 0.0.0-use.local
resolution: "@storybook/codemod@workspace:lib/codemod"
Expand Down Expand Up @@ -6205,13 +6174,6 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/core-events@npm:7.1.0-alpha.29":
version: 7.1.0-alpha.29
resolution: "@storybook/core-events@npm:7.1.0-alpha.29"
checksum: 6a266433427b06aa99f0e02dbaad9d545a22e6e3c0487e1bbcc78d3782bee91e8062ed08b44461749069dd519d2cec9af76dbeb03ee452e4bcc78b0c04fc64e5
languageName: node
linkType: hard

"@storybook/core-server@7.1.0-alpha.36, @storybook/core-server@workspace:*, @storybook/core-server@workspace:lib/core-server":
version: 0.0.0-use.local
resolution: "@storybook/core-server@workspace:lib/core-server"
Expand Down Expand Up @@ -6472,28 +6434,14 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/instrumenter@npm:future":
version: 7.1.0-alpha.29
resolution: "@storybook/instrumenter@npm:7.1.0-alpha.29"
dependencies:
"@storybook/channels": 7.1.0-alpha.29
"@storybook/client-logger": 7.1.0-alpha.29
"@storybook/core-events": 7.1.0-alpha.29
"@storybook/global": ^5.0.0
"@storybook/preview-api": 7.1.0-alpha.29
checksum: a401ad429008be2c06eead8e52f4d1db73fcbb0e5a4ba406e82a034d46057752c8bdad9912cb2df2b48954fc4c75ba96a6895fe33f1df934ae12b0e2bec4d46c
languageName: node
linkType: hard

"@storybook/jest@npm:future":
version: 0.1.1-future.2
resolution: "@storybook/jest@npm:0.1.1-future.2"
"@storybook/jest@npm:next":
version: 0.1.1-next.1
resolution: "@storybook/jest@npm:0.1.1-next.1"
dependencies:
"@storybook/expect": storybook-jest
"@storybook/instrumenter": future
"@testing-library/jest-dom": ^5.16.2
jest-mock: ^27.3.0
checksum: bfecca13ba3d32e7b37eee7c6cb272c18b8dc79b25a1381627bfeb33efc881f0780a32d1acf4a92c058148728923718cee92e588d44290f26f4d428b480187d5
checksum: 09ffd8f56def15bb79e897cad6eb9a2157af223a876936a27b7082de2f3891cccdbaeac1b1e81481e9d50bc7d2837f8029f5b1a4e9f1a3f4aa6314222f4c17be
languageName: node
linkType: hard

Expand Down Expand Up @@ -6961,29 +6909,6 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/preview-api@npm:7.1.0-alpha.29":
version: 7.1.0-alpha.29
resolution: "@storybook/preview-api@npm:7.1.0-alpha.29"
dependencies:
"@storybook/channel-postmessage": 7.1.0-alpha.29
"@storybook/channels": 7.1.0-alpha.29
"@storybook/client-logger": 7.1.0-alpha.29
"@storybook/core-events": 7.1.0-alpha.29
"@storybook/csf": ^0.1.0
"@storybook/global": ^5.0.0
"@storybook/types": 7.1.0-alpha.29
"@types/qs": ^6.9.5
dequal: ^2.0.2
lodash: ^4.17.21
memoizerific: ^1.11.3
qs: ^6.10.0
synchronous-promise: ^2.0.15
ts-dedent: ^2.0.0
util-deprecate: ^1.0.2
checksum: be648b02a0b3218e837f7b15389487da2d146174e0aa919c4383b09630a541abf850595b74642a1e409ad5a96fba6224af03bd87f5de556dcc51f380cf34c1d3
languageName: node
linkType: hard

"@storybook/preview-web@7.1.0-alpha.36, @storybook/preview-web@workspace:*, @storybook/preview-web@workspace:deprecated/preview-web":
version: 0.0.0-use.local
resolution: "@storybook/preview-web@workspace:deprecated/preview-web"
Expand Down Expand Up @@ -7183,7 +7108,7 @@ __metadata:
"@storybook/html-vite": "workspace:*"
"@storybook/html-webpack5": "workspace:*"
"@storybook/instrumenter": "workspace:*"
"@storybook/jest": future
"@storybook/jest": next
"@storybook/linter-config": ^3.1.2
"@storybook/manager": "workspace:*"
"@storybook/manager-api": "workspace:*"
Expand Down Expand Up @@ -7216,7 +7141,7 @@ __metadata:
"@storybook/svelte": "workspace:*"
"@storybook/svelte-webpack5": "workspace:*"
"@storybook/telemetry": "workspace:*"
"@storybook/testing-library": 0.1.1--canary.958fe40.0
"@storybook/testing-library": next
"@storybook/theming": "workspace:*"
"@storybook/types": "workspace:*"
"@storybook/vue": "workspace:*"
Expand Down Expand Up @@ -7485,16 +7410,14 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/testing-library@npm:0.1.1--canary.958fe40.0":
version: 0.1.1--canary.958fe40.0
resolution: "@storybook/testing-library@npm:0.1.1--canary.958fe40.0"
"@storybook/testing-library@npm:next":
version: 0.2.0-next.0
resolution: "@storybook/testing-library@npm:0.2.0-next.0"
dependencies:
"@storybook/client-logger": future
"@storybook/instrumenter": future
"@testing-library/dom": ^9.3.1
"@testing-library/user-event": ^14.4.3
ts-dedent: ^2.2.0
checksum: 49daf6346c0372b0daed589547558153ec43fe26b440c98bb3f987cd178a0771b84596ef4357dfe3f270f54f8f540d31bdcd145cc485a6d5293508b61b462875
checksum: 342ee91530b77db13c2691c36d7a00efead1af6453b58bbcca4d01afcdbe8e2b12dcaef734bea165838b6e6dd5af7d12032039c12e53955d7026190e56f6dc1b
languageName: node
linkType: hard

Expand Down Expand Up @@ -7537,18 +7460,6 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/types@npm:7.1.0-alpha.29":
version: 7.1.0-alpha.29
resolution: "@storybook/types@npm:7.1.0-alpha.29"
dependencies:
"@storybook/channels": 7.1.0-alpha.29
"@types/babel__core": ^7.0.0
"@types/express": ^4.7.0
file-system-cache: ^2.0.0
checksum: 29c94d3ba0b0bc4759893640e02cc83d0682f5c97dbefb1c5903a99d0341161f65eb0a65175123970a1176ff13e0f0b1661f5460583ea8de15c1b7ef18f73aeb
languageName: node
linkType: hard

"@storybook/vue-vite@workspace:frameworks/vue-vite":
version: 0.0.0-use.local
resolution: "@storybook/vue-vite@workspace:frameworks/vue-vite"
Expand Down
4 changes: 2 additions & 2 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
"@nx/workspace": "16.2.1",
"@octokit/graphql": "^5.0.5",
"@storybook/eslint-config-storybook": "^3.1.2",
"@storybook/jest": "future",
"@storybook/jest": "next",
"@storybook/linter-config": "^3.1.2",
"@storybook/testing-library": "0.1.1--canary.958fe40.0",
"@storybook/testing-library": "next",
"@swc/core": "^1.3.23",
"@testing-library/dom": "^9.3.0",
"@testing-library/jest-dom": "^5.11.9",
Expand Down
6 changes: 3 additions & 3 deletions scripts/tasks/sandbox-parts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ async function addExtraDependencies({
}) {
// web-components doesn't install '@storybook/testing-library' by default
const extraDeps = [
'@storybook/jest@future',
'@storybook/testing-library@0.1.1--canary.958fe40.0',
'@storybook/test-runner@future',
'@storybook/jest@next',
'@storybook/testing-library@next',
'@storybook/test-runner@next',
];
if (debug) logger.log('🎁 Adding extra deps', extraDeps);
if (!dryRun) {
Expand Down
Loading

0 comments on commit 91c4339

Please sign in to comment.