fix(cliproxy): update remaining stale imports in non-colocated tests

Fix auth-token-manager, quota-response-cache, stats-fetcher,
and proxy-detector import paths in tests/ outside cliproxy.
This commit is contained in:
Tam Nhu Tran
2026-04-29 17:26:51 -04:00
parent 9ad7529bb3
commit 2c817fae48
5 changed files with 5 additions and 5 deletions
@@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, it } from 'bun:test';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import { getEffectiveApiKey } from '../../../src/cliproxy/auth-token-manager';
import { getEffectiveApiKey } from '../../../src/cliproxy/auth/auth-token-manager';
import {
resolveCliproxyBridgeMetadata,
resolveCliproxyBridgeProfile,
@@ -6,7 +6,7 @@
*/
import { describe, it, expect, mock } from 'bun:test';
import type { ProxyStatus } from '../../../src/cliproxy/proxy-detector';
import type { ProxyStatus } from '../../../src/cliproxy/proxy/proxy-detector';
// Mutable holder so each test can override the resolved value
let mockStatus: ProxyStatus = { running: false, verified: false };
@@ -10,7 +10,7 @@ import {
clearQuotaCache,
getCachedQuota,
setCachedQuota,
} from '../../../src/cliproxy/quota-response-cache';
} from '../../../src/cliproxy/quota/quota-response-cache';
import { restoreFetch, mockFetch } from '../../mocks';
describe('cliproxy-auth-routes manual callback nickname persistence', () => {
@@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, it, spyOn } from 'bun:test';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import type { CliproxyUsageApiResponse } from '../../../src/cliproxy/stats-fetcher';
import type { CliproxyUsageApiResponse } from '../../../src/cliproxy/services/stats-fetcher';
import { runWithScopedConfigDir } from '../../../src/utils/config-manager';
import {
loadCachedCliproxyData,
@@ -2,7 +2,7 @@ import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import { afterEach, beforeEach, describe, expect, it } from 'bun:test';
import type { CliproxyUsageApiResponse } from '../../../src/cliproxy/stats-fetcher';
import type { CliproxyUsageApiResponse } from '../../../src/cliproxy/services/stats-fetcher';
import {
clearModelsDevRegistryCache,
setCachedModelsDevRegistry,