From 8401a48c50f1cfec940e447980ce91d832593b70 Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Sun, 4 Oct 2020 10:00:46 +0900 Subject: [PATCH] expect >= 1 assertion in storyshots puppeteer test --- addons/storyshots/storyshots-puppeteer/src/imageSnapshot.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/storyshots/storyshots-puppeteer/src/imageSnapshot.ts b/addons/storyshots/storyshots-puppeteer/src/imageSnapshot.ts index 5d2d9628489e..e069f7b22d2b 100644 --- a/addons/storyshots/storyshots-puppeteer/src/imageSnapshot.ts +++ b/addons/storyshots/storyshots-puppeteer/src/imageSnapshot.ts @@ -11,6 +11,7 @@ export const imageSnapshot = (customConfig: Partial = {}) = return puppeteerTest({ ...config, async testBody(page, options) { + expect.hasAssertions(); const element = await beforeScreenshot(page, options); const image = await (element || page).screenshot(getScreenshotOptions(options)); await afterScreenshot({ image, context: options.context });