diff --git a/addons/storyshots/storyshots-puppeteer/src/imageSnapshot.ts b/addons/storyshots/storyshots-puppeteer/src/imageSnapshot.ts index d2e950401f7a..e069f7b22d2b 100644 --- a/addons/storyshots/storyshots-puppeteer/src/imageSnapshot.ts +++ b/addons/storyshots/storyshots-puppeteer/src/imageSnapshot.ts @@ -11,7 +11,7 @@ export const imageSnapshot = (customConfig: Partial = {}) = return puppeteerTest({ ...config, async testBody(page, options) { - expect.assertions(1); + expect.hasAssertions(); const element = await beforeScreenshot(page, options); const image = await (element || page).screenshot(getScreenshotOptions(options)); await afterScreenshot({ image, context: options.context });