mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-24 14:34:21 +00:00
a2704ed3f1
Instead of needing to always make sure that we've cleared host rules in tests that use them - or knowing when they're touched indirectly - we can make sure that we have an `afterEach` that will clear our Host Rules. We can do this by making sure that we have a top-level `afterEach` that handles this, which needs a dynamic import to avoid eagerly importing and caching it, which would leave stale unmocked bindings for a given file's test run. We also need to make sure that `private-key.spec.ts`'s `sanitize.ts` mock is updated to also stub `clearRepoSanitizedSecretsList`, since `hostRules.clear()` now calls. Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
2 lines
56 B
TypeScript
2 lines
56 B
TypeScript
export * as hostRules from '../lib/util/host-rules.ts';
|