Skip to content

Commit

Permalink
⬆️ Upgrade to MSW 2.x
Browse files Browse the repository at this point in the history
Major version bump, so the mocks had to be updated too. This should
make upgrading Storybook easier in the future since we don't need to
pin MSW to 1.x
  • Loading branch information
sergei-maertens committed Nov 25, 2024
1 parent aff67a0 commit 4cf3252
Show file tree
Hide file tree
Showing 8 changed files with 655 additions and 1,392 deletions.
4 changes: 2 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../src/openforms/scss/screen.scss';
import '../src/openforms/scss/admin/admin_overrides.scss';
import {withModalDecorator, withReactSelectDecorator} from 'components/admin/form_design/story-decorators';
import {initialize, mswDecorator, mswLoader} from 'msw-storybook-addon';
import {initialize, mswLoader} from 'msw-storybook-addon';
import {reactIntl} from './reactIntl.js';
import ReactModal from 'react-modal';

Expand All @@ -15,7 +15,7 @@ initialize({
ReactModal.setAppElement(document.getElementById('storybook-root'));

export default {
decorators: [mswDecorator, withModalDecorator, withReactSelectDecorator],
decorators: [withModalDecorator, withReactSelectDecorator],
parameters: {
controls: {
matchers: {
Expand Down
Loading

0 comments on commit 4cf3252

Please sign in to comment.