@jsenv/snapshot 1.5.0 → 1.5.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/snapshot",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Snapshot testing",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -35,7 +35,7 @@
35
35
  "test": "node --conditions=development ./scripts/test.mjs"
36
36
  },
37
37
  "dependencies": {
38
- "@jsenv/assert": "4.0.13",
38
+ "@jsenv/assert": "4.0.14",
39
39
  "@jsenv/filesystem": "4.7.3",
40
40
  "@jsenv/urls": "2.2.8",
41
41
  "@jsenv/utils": "2.1.1",
@@ -337,6 +337,9 @@ ${extraUrls.join("\n")}`);
337
337
  }
338
338
  const relativeUrl = urlToRelativeUrl(directoryItemUrl, directoryUrl);
339
339
  if (directoryItemStat.isDirectory()) {
340
+ if (!shouldIncludeFile(directoryUrl)) {
341
+ continue;
342
+ }
340
343
  if (!shouldVisitDirectory(directoryUrl)) {
341
344
  continue;
342
345
  }