diff --git a/addons/storyshots/storyshots-core/src/api/snapshotsTestsTemplate.ts b/addons/storyshots/storyshots-core/src/api/snapshotsTestsTemplate.ts index a2564022f4e6..deef13602eb8 100644 --- a/addons/storyshots/storyshots-core/src/api/snapshotsTestsTemplate.ts +++ b/addons/storyshots/storyshots-core/src/api/snapshotsTestsTemplate.ts @@ -11,9 +11,9 @@ function snapshotTest({ item, asyncJest, framework, testMethod, testMethodParams it( name, () => - new Promise((done) => + new Promise((resolve, reject) => testMethod({ - done, + done: (error: any) => (error ? reject(error) : resolve()), story: item, context, ...testMethodParams,