mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-05 22:32:12 +00:00
fix: align extension boundary guardrails for landing (#60153)
This commit is contained in:
@@ -67,7 +67,9 @@ function isTestLikeFile(relativePath) {
|
||||
return (
|
||||
/(^|\/)(__tests__|fixtures|test|tests|test-support)\//.test(relativePath) ||
|
||||
/(^|\/)test-support\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/.test(relativePath) ||
|
||||
/(^|\/)[^/]*test-(support|helpers)\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/.test(relativePath) ||
|
||||
/(^|\/)[^/]*test-(support|helpers|fixtures)\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/.test(
|
||||
relativePath,
|
||||
) ||
|
||||
/\.(test|spec)\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/.test(relativePath)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,12 @@ function isProductionExtensionFile(filePath: string): boolean {
|
||||
filePath.includes(".snap") ||
|
||||
filePath.includes("test-harness") ||
|
||||
filePath.includes("test-support") ||
|
||||
filePath.includes("test-helpers") ||
|
||||
filePath.includes("test-fixtures") ||
|
||||
filePath.includes("/__tests__/") ||
|
||||
filePath.includes("/fixtures/") ||
|
||||
filePath.includes("/test/") ||
|
||||
filePath.includes("/tests/") ||
|
||||
filePath.includes("/coverage/") ||
|
||||
filePath.includes("/dist/") ||
|
||||
filePath.includes("/node_modules/")
|
||||
|
||||
Reference in New Issue
Block a user