mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 15:01:49 +00:00
8e965bfe2c
lib/config/decrypt/legacy.ts was removed in #39111, so getCoverageIgnorePatterns() only ever excluded a path that no longer exists, and the TEST_LEGACY_DECRYPTION workflow env var that gated it was read by nothing else. Coverage is unaffected: a full run reports the same numbers before and after, so the thresholds stay as they are. Co-authored-by: Claude Opus 5 <michael.kriese+claude-code@mend.io>
12 lines
314 B
TypeScript
12 lines
314 B
TypeScript
/**
|
|
* Convert match pattern to a form that matches on file with `.ts` or `.spec.ts` extension.
|
|
*/
|
|
export function normalizePattern(
|
|
pattern: string,
|
|
suffix: '.ts' | '.spec.ts',
|
|
): string {
|
|
return pattern.endsWith('.spec.ts')
|
|
? pattern.replace(/\.spec\.ts$/, suffix)
|
|
: `${pattern}/**/*${suffix}`;
|
|
}
|