From 696563f2a03a8e36afa9b869a36262dfe543ae16 Mon Sep 17 00:00:00 2001 From: Travis Bloom Date: Thu, 2 Nov 2017 15:22:34 -0400 Subject: [PATCH] return the test in storyshots so if async work needs to occur before snapshotting, jest waits before failing --- addons/storyshots/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/storyshots/src/index.js b/addons/storyshots/src/index.js index 3d22cf213f31..dd8d44d5e4b5 100644 --- a/addons/storyshots/src/index.js +++ b/addons/storyshots/src/index.js @@ -88,7 +88,7 @@ export default function testStorySnapshots(options = {}) { it(story.name, () => { const context = { kind: group.kind, story: story.name }; - options.test({ story, context }); + return options.test({ story, context }); }); } });