mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-15 12:20:44 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user