From b6c627e7c0daff2b697e90c07171d9855dcc1c5a Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Fri, 1 Dec 2023 19:35:48 +0530 Subject: [PATCH] docs: update comments --- src/snapshots.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snapshots.js b/src/snapshots.js index ce6c4109..35a7d0ae 100644 --- a/src/snapshots.js +++ b/src/snapshots.js @@ -231,7 +231,7 @@ export async function* takeStorybookSnapshots(percy, callback, { baseUrl, flags options.domSnapshot = domSnapshot; // validate without logging to prune all other options PercyConfig.validate(options, '/snapshot/dom'); - // validate without logging to prune all other options + // snapshots are queued and do not need to be awaited on percy.snapshot({ ...options, widths: [w] }); } } else { @@ -239,7 +239,7 @@ export async function* takeStorybookSnapshots(percy, callback, { baseUrl, flags options.domSnapshot = domSnapshot; // validate without logging to prune all other options PercyConfig.validate(options, '/snapshot/dom'); - // validate without logging to prune all other options + // snapshots are queued and do not need to be awaited on percy.snapshot({ ...options }); } }