Fix snapshot tests

This commit is contained in:
dominik-zeglen 2019-06-19 17:23:04 +02:00
parent 8c3e015ffc
commit f8c62f3bb9

View file

@ -19,7 +19,7 @@ jest.mock("draft-js/lib/generateRandomKey");
(generateRandomKey as any).mockImplementation(() => "testKey");
initStoryshots({
configPath: "saleor/static/dashboard-next/storybook/",
configPath: "src/storybook/",
test({ story }) {
const result = render(story.render() as any);
expect(toJSON(result)).toMatchSnapshot();