Skip to content

Commit

Permalink
Merge pull request #11962 from kahirokunn/next
Browse files Browse the repository at this point in the history
Storyshots: Fix support for test failures in async tests
  • Loading branch information
shilman committed Oct 3, 2020
2 parents 750f542 + 380726e commit bac3800
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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,
Expand Down

0 comments on commit bac3800

Please sign in to comment.