Skip to content

Commit df7e42f

Browse files
authored
Fix @turf/mask benchmarks to exclude test fixtures that are not usable (#2692)
1 parent c470ea4 commit df7e42f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/turf-mask/bench.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ const isPolygonFeature = (
1414

1515
const __dirname = path.dirname(fileURLToPath(import.meta.url));
1616

17-
const SKIP = [];
17+
// these test fixtures are not used for benchmarking because they contain a
18+
// FeatureCollection with a single MultiPolygon, instead of a FeatureCollection
19+
// with two Polygons, where the first one is the polygon and the second is the mask.
20+
const SKIP = ["multi-polygon.geojson", "overlapping.geojson"];
1821

1922
const suite = new Benchmark.Suite("turf-mask");
2023

0 commit comments

Comments
 (0)