Skip to content

Commit 3d43252

Browse files
committed
Fix Storybook test failures
1 parent 76dfe56 commit 3d43252

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

ui/.storybook/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import type { StorybookConfig } from "@storybook/react-vite";
22

33
const config: StorybookConfig = {
4-
stories: ["../**/*.stories.@(js|jsx|mjs|ts|tsx)", "../**/*.storybook.mdx"],
4+
stories: [
5+
"../app/**/*.stories.@(js|jsx|mjs|ts|tsx)",
6+
"../app/**/*.storybook.mdx",
7+
],
58
addons: [
69
"@storybook/addon-onboarding",
710
"@chromatic-com/storybook",

ui/app/components/ui/code-editor.stories.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Meta, ReactRenderer, StoryObj } from "@storybook/react-vite";
22
import { useState } from "react";
33
import { CodeEditor, type CodeEditorProps } from "./code-editor";
44
import type { ArgsStoryFn } from "storybook/internal/csf";
5+
import { GlobalToastProvider } from "~/providers/global-toast-provider";
56

67
const meta: Meta<typeof CodeEditor> = {
78
title: "UI/CodeEditor",
@@ -17,9 +18,11 @@ const meta: Meta<typeof CodeEditor> = {
1718
},
1819
decorators: [
1920
(Story) => (
20-
<div className="max-w-md">
21-
<Story />
22-
</div>
21+
<GlobalToastProvider>
22+
<div className="max-w-md">
23+
<Story />
24+
</div>
25+
</GlobalToastProvider>
2326
),
2427
],
2528
};

0 commit comments

Comments
 (0)