diff --git a/.storybook/Storyshots.test.js b/.storybook/Storyshots.test.js index 386a84488a..d116e2972b 100644 --- a/.storybook/Storyshots.test.js +++ b/.storybook/Storyshots.test.js @@ -7,7 +7,10 @@ jest.mock("react-dom", () => { render: () => null, unmountComponentAtNode: () => null, findDOMNode: () => null, + createPortal: () => null, }; }); -initStoryshots(); +initStoryshots({ + storyKindRegex: /^((?!.*?Modal).)*$/, +}); diff --git a/.storybook/__snapshots__/Storyshots.test.js.snap b/.storybook/__snapshots__/Storyshots.test.js.snap index b8c121b48a..4f403fed5e 100644 --- a/.storybook/__snapshots__/Storyshots.test.js.snap +++ b/.storybook/__snapshots__/Storyshots.test.js.snap @@ -20734,710 +20734,6 @@ exports[`Storyshots MailtoLink with subject and body 1`] = ` `; -exports[`Storyshots Modal basic usage 1`] = ` -
- Modal body. -
-- Modal body. -
-- Modal body. -
-- Modal body. -
-- Custom body! -
-- I was invoked by a button! -
-- Enter your e-mail address to receive free cat facts! -
-- Be careful! It is dangerous ahead. -
-- Modal body. -
-