From 0fa79ef75cb390677b400b938618cc2f1300ea36 Mon Sep 17 00:00:00 2001 From: Matt Fedderly Date: Thu, 8 Aug 2024 14:55:01 -0400 Subject: [PATCH] Fix @turf/mask benchmarks to exclude test fixtures that are not usable --- packages/turf-mask/bench.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/turf-mask/bench.ts b/packages/turf-mask/bench.ts index f131561b3..845303008 100644 --- a/packages/turf-mask/bench.ts +++ b/packages/turf-mask/bench.ts @@ -14,7 +14,10 @@ const isPolygonFeature = ( const __dirname = path.dirname(fileURLToPath(import.meta.url)); -const SKIP = []; +// these test fixtures are not used for benchmarking because they contain a +// FeatureCollection with a single MultiPolygon, instead of a FeatureCollection +// with two Polygons, where the first one is the polygon and the second is the mask. +const SKIP = ["multi-polygon.geojson", "overlapping.geojson"]; const suite = new Benchmark.Suite("turf-mask");