From 9a04b4c44d5740ce15868f7c22cc292de24fe4c1 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Thu, 16 May 2024 11:20:23 +0200 Subject: [PATCH] Build: Remove @storybook/testing-library from internal sandbox generation --- code/package.json | 1 - code/yarn.lock | 14 +------------- scripts/tasks/sandbox-parts.ts | 3 +-- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/code/package.json b/code/package.json index 37824a723fad..c902e7e54ada 100644 --- a/code/package.json +++ b/code/package.json @@ -166,7 +166,6 @@ "@storybook/svelte-webpack5": "workspace:*", "@storybook/telemetry": "workspace:*", "@storybook/test": "workspace:*", - "@storybook/testing-library": "next", "@storybook/theming": "workspace:*", "@storybook/types": "workspace:*", "@storybook/vue3": "workspace:*", diff --git a/code/yarn.lock b/code/yarn.lock index f12c511b2380..f46b416b8bb3 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6811,7 +6811,6 @@ __metadata: "@storybook/svelte-webpack5": "workspace:*" "@storybook/telemetry": "workspace:*" "@storybook/test": "workspace:*" - "@storybook/testing-library": "npm:next" "@storybook/theming": "workspace:*" "@storybook/types": "workspace:*" "@storybook/vue3": "workspace:*" @@ -7081,17 +7080,6 @@ __metadata: languageName: unknown linkType: soft -"@storybook/testing-library@npm:next": - version: 0.2.2-next.0 - resolution: "@storybook/testing-library@npm:0.2.2-next.0" - dependencies: - "@testing-library/dom": "npm:^9.0.0" - "@testing-library/user-event": "npm:^14.4.0" - ts-dedent: "npm:^2.2.0" - checksum: 10c0/4350e73776cba8ab5037ee9a8b07b957c73540873f64097648ed96b93f086469eab475ad19b917e5e2eee4faec67891fa443d703b9b4aa28efc9a74243970a4e - languageName: node - linkType: hard - "@storybook/theming@workspace:*, @storybook/theming@workspace:lib/theming": version: 0.0.0-use.local resolution: "@storybook/theming@workspace:lib/theming" @@ -7483,7 +7471,7 @@ __metadata: languageName: node linkType: hard -"@testing-library/user-event@npm:^14.4.0, @testing-library/user-event@npm:^14.4.3, @testing-library/user-event@npm:^14.5.2": +"@testing-library/user-event@npm:^14.4.3, @testing-library/user-event@npm:^14.5.2": version: 14.5.2 resolution: "@testing-library/user-event@npm:14.5.2" peerDependencies: diff --git a/scripts/tasks/sandbox-parts.ts b/scripts/tasks/sandbox-parts.ts index bee4513a4326..041c67a88d81 100644 --- a/scripts/tasks/sandbox-parts.ts +++ b/scripts/tasks/sandbox-parts.ts @@ -352,8 +352,7 @@ export async function addExtraDependencies({ debug: boolean; extraDeps?: string[]; }) { - // web-components doesn't install '@storybook/testing-library' by default - const extraDevDeps = ['@storybook/testing-library@next', '@storybook/test-runner@next']; + const extraDevDeps = ['@storybook/test-runner@next']; if (debug) logger.log('🎁 Adding extra dev deps', extraDevDeps); let packageManager: JsPackageManager; if (!dryRun) {