From 0a8ffd55f103939661b26948197d8b0ca22ba0b6 Mon Sep 17 00:00:00 2001 From: Bodo Graumann Date: Tue, 31 Oct 2023 21:09:48 +0100 Subject: [PATCH] Also avoid name collision with default imports --- .../transforms/__tests__/mdx-to-csf.test.ts | 36 +++++++++++++++++++ code/lib/codemod/src/transforms/mdx-to-csf.ts | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/code/lib/codemod/src/transforms/__tests__/mdx-to-csf.test.ts b/code/lib/codemod/src/transforms/__tests__/mdx-to-csf.test.ts index 669a836e65ea..f26c475d9fa8 100644 --- a/code/lib/codemod/src/transforms/__tests__/mdx-to-csf.test.ts +++ b/code/lib/codemod/src/transforms/__tests__/mdx-to-csf.test.ts @@ -473,6 +473,42 @@ test('story name equals component name', () => { `); }); +test('story name equals component name for vue', () => { + const input = dedent` + import { Meta, Story } from '@storybook/addon-docs'; + import Button from './Button.vue'; + + + +