@jsenv/snapshot 1.5.4 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/file_snapshots.js +8 -4
package/package.json
CHANGED
package/src/file_snapshots.js
CHANGED
|
@@ -290,12 +290,16 @@ ${extraUrls.join("\n")}`);
|
|
|
290
290
|
}
|
|
291
291
|
// content
|
|
292
292
|
{
|
|
293
|
-
for (const relativeUrl of
|
|
293
|
+
for (const relativeUrl of relativeUrls) {
|
|
294
294
|
const snapshot = directoryContentSnapshot[relativeUrl];
|
|
295
295
|
const nextSnapshot = nextDirectoryContentSnapshot[relativeUrl];
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
if (nextSnapshot) {
|
|
297
|
+
snapshot.compare(nextSnapshot, {
|
|
298
|
+
throwWhenDiff: relativeUrl.endsWith(".gif")
|
|
299
|
+
? false
|
|
300
|
+
: throwWhenDiff,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
299
303
|
}
|
|
300
304
|
}
|
|
301
305
|
},
|