fix(ci): reset deep test runtime state

This commit is contained in:
Vincent Koc
2026-03-19 14:23:17 -07:00
parent ae02f40144
commit 83a267e2f3
6 changed files with 39 additions and 31 deletions

View File

@@ -98,3 +98,12 @@ export function getActivePluginRegistryKey(): string | null {
export function getActivePluginRegistryVersion(): number {
return state.version;
}
export function resetPluginRuntimeStateForTest(): void {
const emptyRegistry = createEmptyPluginRegistry();
state.registry = emptyRegistry;
state.httpRouteRegistry = emptyRegistry;
state.httpRouteRegistryPinned = false;
state.key = null;
state.version += 1;
}