{s()}
>
),
diff --git a/lib/codemod/src/transforms/__testfixtures__/convert-mdx-to-module/decorators.input.js b/lib/codemod/src/transforms/__testfixtures__/convert-mdx-to-module/decorators.input.js
index a0f7a6be726c..2c9bc768f8f4 100644
--- a/lib/codemod/src/transforms/__testfixtures__/convert-mdx-to-module/decorators.input.js
+++ b/lib/codemod/src/transforms/__testfixtures__/convert-mdx-to-module/decorators.input.js
@@ -5,4 +5,4 @@ import { Meta, Story } from '@storybook/addon-docs/blocks';
title='Some.Button'
decorators={[withKnobs, storyFn =>
{storyFn}
]} />
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/lib/codemod/src/transforms/__testfixtures__/convert-mdx-to-module/decorators.output.js b/lib/codemod/src/transforms/__testfixtures__/convert-mdx-to-module/decorators.output.js
index 8be30b134b98..d66ccc1c495e 100644
--- a/lib/codemod/src/transforms/__testfixtures__/convert-mdx-to-module/decorators.output.js
+++ b/lib/codemod/src/transforms/__testfixtures__/convert-mdx-to-module/decorators.output.js
@@ -10,4 +10,5 @@ export const withDecorator = () => ;
withDecorator.story = {
name: 'with decorator',
+ decorators: [withKnobs],
};
diff --git a/lib/codemod/src/transforms/__testfixtures__/convert-module-to-mdx/decorators.input.js b/lib/codemod/src/transforms/__testfixtures__/convert-module-to-mdx/decorators.input.js
index 9910ac2024b5..50d11fde87e6 100644
--- a/lib/codemod/src/transforms/__testfixtures__/convert-module-to-mdx/decorators.input.js
+++ b/lib/codemod/src/transforms/__testfixtures__/convert-module-to-mdx/decorators.input.js
@@ -7,4 +7,7 @@ export default {
};
export const story1 = () => ;
-story1.story = { name: 'with decorator' };
+story1.story = {
+ name: 'with decorator',
+ decorators: [withKnobs],
+};
diff --git a/lib/codemod/src/transforms/__testfixtures__/convert-module-to-mdx/decorators.output.js b/lib/codemod/src/transforms/__testfixtures__/convert-module-to-mdx/decorators.output.js
index a0f7a6be726c..2c9bc768f8f4 100644
--- a/lib/codemod/src/transforms/__testfixtures__/convert-module-to-mdx/decorators.output.js
+++ b/lib/codemod/src/transforms/__testfixtures__/convert-module-to-mdx/decorators.output.js
@@ -5,4 +5,4 @@ import { Meta, Story } from '@storybook/addon-docs/blocks';
title='Some.Button'
decorators={[withKnobs, storyFn =>
{storyFn}
]} />
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/lib/codemod/src/transforms/__testfixtures__/convert-storiesof-to-module/story-decorators.input.js b/lib/codemod/src/transforms/__testfixtures__/convert-storiesof-to-module/story-decorators.input.js
new file mode 100644
index 000000000000..7468df8d9e6c
--- /dev/null
+++ b/lib/codemod/src/transforms/__testfixtures__/convert-storiesof-to-module/story-decorators.input.js
@@ -0,0 +1,11 @@
+import React from 'react';
+import Button from './Button';
+
+storiesOf('Some.Button', module)
+ .add('with story params and decorators', () => , {
+ bar: 1,
+ decorators: [withKnobs, storyFn =>