diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 8f8149f097..937c51c57a 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -8,7 +8,7 @@ import { SessionType } from "../src/app/core/session/session-type"; // fixing a mocked "TODAY" to have persistent stories for visual regression testing MockDate.set(new Date("2023-06-09")); // polyfill buffer here as well -window.Buffer = buffer.Buffer; +window["Buffer"] = buffer.Buffer; environment.production = false; environment.session_type = SessionType.mock; environment.demo_mode = false; @@ -24,7 +24,7 @@ const preview: Preview = { }, }, - tags: ["autodocs"] + tags: ["autodocs"], }; export default preview;