From 141cc9aa3dac80353d3ef13a4bb7e67d63a86064 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Sat, 28 Jan 2023 11:59:33 -0500 Subject: [PATCH 1/2] Deps: Use @storybook/testing-library@next --- code/lib/cli/src/generators/baseGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/cli/src/generators/baseGenerator.ts b/code/lib/cli/src/generators/baseGenerator.ts index 67cf9d7dec7..f8006241a86 100644 --- a/code/lib/cli/src/generators/baseGenerator.ts +++ b/code/lib/cli/src/generators/baseGenerator.ts @@ -176,7 +176,7 @@ export async function baseGenerator( if (hasInteractiveStories(rendererId)) { addons.push('@storybook/addon-interactions'); - addonPackages.push('@storybook/addon-interactions', '@storybook/testing-library'); + addonPackages.push('@storybook/addon-interactions', '@storybook/testing-library@next'); } const files = await fse.readdir(process.cwd()); From b8d876a218b0f85eca641ec6109ec0524be40841 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Mon, 30 Jan 2023 07:37:26 -0500 Subject: [PATCH 2/2] Do not use tag in generator --- code/lib/cli/src/generators/baseGenerator.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/lib/cli/src/generators/baseGenerator.ts b/code/lib/cli/src/generators/baseGenerator.ts index f8006241a86..5a9f48b201d 100644 --- a/code/lib/cli/src/generators/baseGenerator.ts +++ b/code/lib/cli/src/generators/baseGenerator.ts @@ -176,7 +176,10 @@ export async function baseGenerator( if (hasInteractiveStories(rendererId)) { addons.push('@storybook/addon-interactions'); - addonPackages.push('@storybook/addon-interactions', '@storybook/testing-library@next'); + addonPackages.push( + '@storybook/addon-interactions', + '@storybook/testing-library@^0.0.14-next.1' + ); } const files = await fse.readdir(process.cwd());