Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Apply any to a whole argument

dominik-zeglene0aa0ca31e99
diff --git a/saleor/static/dashboard-next/storybook/Stories.test.ts b/saleor/static/dashboard-next/storybook/Stories.test.ts
index 8b4a8d3723..b5b0deabc9 100644
--- a/saleor/static/dashboard-next/storybook/Stories.test.ts
+++ b/saleor/static/dashboard-next/storybook/Stories.test.ts
@@ -16,7 +16,7 @@ jest.mock("@material-ui/core/styles/createGenerateClassName");
initStoryshots({
configPath: "saleor/static/dashboard-next/storybook/",
test({ story }) {
- const result = render((story as any).render());
+ const result = render(story.render() as any);
expect(toJSON(result)).toMatchSnapshot();
}
});