Skip to content

Commit 9eea0b0

Browse files
committed
chore(dep): add msw
1 parent 42aec1d commit 9eea0b0

File tree

5 files changed

+620
-0
lines changed

5 files changed

+620
-0
lines changed

.storybook/preview.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ import '@patternfly/patternfly/patternfly-addons.css';
44
import { MemoryRouter } from 'react-router';
55
import { AppLayout } from '../src/app/AppLayout/AppLayout';
66
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
7+
import { initialize, mswDecorator } from 'msw-storybook-addon';
8+
9+
initialize();
710

811
const preview = {
912
decorators: [
13+
mswDecorator,
1014
(Story) => {
1115
const queryClient = new QueryClient();
1216
return (

0 commit comments

Comments
 (0)