mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 06:16:37 +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 fs from 'fs';
|
||||||
import * as os from 'os';
|
import * as os from 'os';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { getEffectiveApiKey } from '../../../src/cliproxy/auth-token-manager';
|
import { getEffectiveApiKey } from '../../../src/cliproxy/auth/auth-token-manager';
|
||||||
import {
|
import {
|
||||||
resolveCliproxyBridgeMetadata,
|
resolveCliproxyBridgeMetadata,
|
||||||
resolveCliproxyBridgeProfile,
|
resolveCliproxyBridgeProfile,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, it, expect, mock } from 'bun:test';
|
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
|
// Mutable holder so each test can override the resolved value
|
||||||
let mockStatus: ProxyStatus = { running: false, verified: false };
|
let mockStatus: ProxyStatus = { running: false, verified: false };
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import {
|
|||||||
clearQuotaCache,
|
clearQuotaCache,
|
||||||
getCachedQuota,
|
getCachedQuota,
|
||||||
setCachedQuota,
|
setCachedQuota,
|
||||||
} from '../../../src/cliproxy/quota-response-cache';
|
} from '../../../src/cliproxy/quota/quota-response-cache';
|
||||||
import { restoreFetch, mockFetch } from '../../mocks';
|
import { restoreFetch, mockFetch } from '../../mocks';
|
||||||
|
|
||||||
describe('cliproxy-auth-routes manual callback nickname persistence', () => {
|
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 fs from 'fs';
|
||||||
import * as os from 'os';
|
import * as os from 'os';
|
||||||
import * as path from 'path';
|
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 { runWithScopedConfigDir } from '../../../src/utils/config-manager';
|
||||||
import {
|
import {
|
||||||
loadCachedCliproxyData,
|
loadCachedCliproxyData,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import * as fs from 'fs';
|
|||||||
import * as os from 'os';
|
import * as os from 'os';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { afterEach, beforeEach, describe, expect, it } from 'bun:test';
|
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 {
|
import {
|
||||||
clearModelsDevRegistryCache,
|
clearModelsDevRegistryCache,
|
||||||
setCachedModelsDevRegistry,
|
setCachedModelsDevRegistry,
|
||||||
|
|||||||
Reference in New Issue
Block a user