mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-16 02:15:23 +00:00
test(websearch): cover disabled launch snapshots
This commit is contained in:
1 parent
abc3002e89
commit
9f5706c275
6 files changed
+159
-29
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { describe, expect, it } from 'bun:test';
|
||||
import {
|
||||
buildCopilotClaudeLaunchArgs,
|
||||
generateCopilotEnv,
|
||||
resolveCopilotImageAnalysisEnv,
|
||||
} from '../../../src/copilot/copilot-executor';
|
||||
@@ -15,6 +16,13 @@ const baseConfig: CopilotConfig = {
|
||||
model: 'gpt-4.1',
|
||||
};
|
||||
|
||||
it('disallows native WebSearch without CCS steering when the Copilot snapshot is disabled', () => {
|
||||
const args = buildCopilotClaudeLaunchArgs(['smoke'], false, false);
|
||||
expect(args).toContain('--disallowedTools');
|
||||
expect(args).toContain('WebSearch');
|
||||
expect(args).not.toContain('--append-system-prompt');
|
||||
});
|
||||
|
||||
describe('generateCopilotEnv', () => {
|
||||
it('normalizes deprecated raptor-mini model selections to the safe default', () => {
|
||||
const env = generateCopilotEnv({
|
||||
|
||||
Reference in new issue
Block a user