mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-15 14:23:02 -07:00
test: fix path resolution in modelConfig golden test
This commit is contained in:
@@ -7,21 +7,20 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import * as fs from 'node:fs/promises';
|
||||
import * as path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { ModelConfigService } from './modelConfigService.js';
|
||||
import { DEFAULT_MODEL_CONFIGS } from '../config/defaultModelConfigs.js';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
const GOLDEN_FILE_PATH = path.resolve(
|
||||
process.cwd(),
|
||||
'src',
|
||||
'services',
|
||||
__dirname,
|
||||
'test-data',
|
||||
'resolved-aliases.golden.json',
|
||||
);
|
||||
|
||||
const RETRY_GOLDEN_FILE_PATH = path.resolve(
|
||||
process.cwd(),
|
||||
'src',
|
||||
'services',
|
||||
__dirname,
|
||||
'test-data',
|
||||
'resolved-aliases-retry.golden.json',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user