Skip to content

Commit

Permalink
chore: update initialization in preview.ts and remove userHandlers in…
Browse files Browse the repository at this point in the history
… sign-up-form.stories.tsx
  • Loading branch information
seonghunYang committed Mar 19, 2024
1 parent 9353625 commit 9c49969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Preview } from '@storybook/react';
import '../app/globals.css';

import { handlers } from '../app/mocks/handlers';
import { initialize, mswDecorator } from 'msw-storybook-addon';

initialize();
initialize({}, [...handlers]);

const preview: Preview = {
decorators: [mswDecorator],
Expand Down
4 changes: 0 additions & 4 deletions app/ui/user/sign-up-form/sign-up-form.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Meta, StoryObj } from '@storybook/react';
import SignUpForm from './sign-up-form';

import { userEvent, within, expect, fn, waitFor } from '@storybook/test';
import { userHandlers } from '@/app/mocks/handlers/user-handler.mock';
import { resetMockDB } from '@/app/mocks/db.mock';

const meta = {
Expand All @@ -19,9 +18,6 @@ const meta = {
</div>
),
],
parameters: {
msw: [...userHandlers],
},
} as Meta<typeof SignUpForm>;

export default meta;
Expand Down

0 comments on commit 9c49969

Please sign in to comment.