From 35a6d3a81d7c927024c45c24a94621d2fc0d56e7 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Wed, 13 May 2026 17:58:28 -0700 Subject: [PATCH] fix(ci): exclude dist/ test files from shard count --- scripts/ci-test-shard.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ci-test-shard.mjs b/scripts/ci-test-shard.mjs index a890b998b..d51046d61 100644 --- a/scripts/ci-test-shard.mjs +++ b/scripts/ci-test-shard.mjs @@ -72,6 +72,7 @@ export function countPackageTestFiles(packageDir, { projectRoot = process.cwd() return globSync("**/__tests__/**/*.test.{ts,tsx,mjs}", { cwd: packageRoot, nodir: true, + exclude: (p) => p.startsWith("dist/") || p.includes("/dist/"), }).length; }