From 52c5859233261b364cb7bc138f131955b094f328 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Tue, 14 Mar 2023 21:28:35 +0100 Subject: [PATCH] revert https://github.com/storybookjs/storybook/pull/20982 --- code/lib/cli/src/generators/configure.test.ts | 9 --------- code/lib/cli/src/generators/configure.ts | 3 --- 2 files changed, 12 deletions(-) diff --git a/code/lib/cli/src/generators/configure.test.ts b/code/lib/cli/src/generators/configure.test.ts index cf1d2e7ecec6..0c9823bae9ff 100644 --- a/code/lib/cli/src/generators/configure.test.ts +++ b/code/lib/cli/src/generators/configure.test.ts @@ -123,9 +123,6 @@ describe('configurePreview', () => { "/** @type { import('@storybook/react').Preview } */ const preview = { parameters: { - backgrounds: { - default: 'light', - }, actions: { argTypesRegex: '^on[A-Z].*' }, controls: { matchers: { @@ -157,9 +154,6 @@ describe('configurePreview', () => { const preview: Preview = { parameters: { - backgrounds: { - default: 'light', - }, actions: { argTypesRegex: '^on[A-Z].*' }, controls: { matchers: { @@ -211,9 +205,6 @@ describe('configurePreview', () => { const preview: Preview = { parameters: { - backgrounds: { - default: 'light', - }, actions: { argTypesRegex: '^on[A-Z].*' }, controls: { matchers: { diff --git a/code/lib/cli/src/generators/configure.ts b/code/lib/cli/src/generators/configure.ts index 97114bfd03e2..f4a15c954917 100644 --- a/code/lib/cli/src/generators/configure.ts +++ b/code/lib/cli/src/generators/configure.ts @@ -142,9 +142,6 @@ export async function configurePreview(options: ConfigurePreviewOptions) { : '' }const preview${isTypescript ? ': Preview' : ''} = { parameters: { - backgrounds: { - default: 'light', - }, actions: { argTypesRegex: '^on[A-Z].*' }, controls: { matchers: {