From ddb1635a465f11a992227ac3aa1cba5a9c8acd41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sun, 2 Apr 2023 23:26:35 +0900 Subject: [PATCH] ci(#10336): disable animation on chromatic --- packages/frontend/.storybook/preview.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/frontend/.storybook/preview.ts b/packages/frontend/.storybook/preview.ts index 5930932d0..b2974276a 100644 --- a/packages/frontend/.storybook/preview.ts +++ b/packages/frontend/.storybook/preview.ts @@ -52,8 +52,9 @@ queueMicrotask(() => { import('../src/directives'), import('../src/widgets'), import('../src/scripts/theme'), + import('../src/store'), import('../src/os'), - ]).then(([{ default: components }, { default: directives }, { default: widgets }, { applyTheme }, os]) => { + ]).then(([{ default: components }, { default: directives }, { default: widgets }, { applyTheme }, { defaultStore }, os]) => { setup((app) => { moduleInitialized = true; if (app[appInitialized]) { @@ -65,6 +66,9 @@ queueMicrotask(() => { directives(app); widgets(app); misskeyOS = os; + if (isChromatic()) { + defaultStore.set('animation', false); + } }); }); });