From e69f6d3df62e69fb7ef8830c5ab3f74bb0c98355 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 | 37 +++++++++++++++++++ code/lib/codemod/src/transforms/mdx-to-csf.ts | 2 +- 2 files changed, 38 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..5ea6c833a512 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,43 @@ 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'; + + + +