mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: add alwaysAllowFollowupQuestions to test settings objects
This commit is contained in:
parent
d89a8f7647
commit
7639054393
2 changed files with 51 additions and 6 deletions
|
|
@ -580,6 +580,7 @@ describe("SYSTEM_PROMPT", () => {
|
|||
maxConcurrentFileReads: 5,
|
||||
todoListEnabled: false,
|
||||
useAgentRules: true,
|
||||
alwaysAllowFollowupQuestions: true,
|
||||
}
|
||||
|
||||
const prompt = await SYSTEM_PROMPT(
|
||||
|
|
@ -612,6 +613,7 @@ describe("SYSTEM_PROMPT", () => {
|
|||
maxConcurrentFileReads: 5,
|
||||
todoListEnabled: true,
|
||||
useAgentRules: true,
|
||||
alwaysAllowFollowupQuestions: true,
|
||||
}
|
||||
|
||||
const prompt = await SYSTEM_PROMPT(
|
||||
|
|
@ -643,6 +645,7 @@ describe("SYSTEM_PROMPT", () => {
|
|||
maxConcurrentFileReads: 5,
|
||||
todoListEnabled: true,
|
||||
useAgentRules: true,
|
||||
alwaysAllowFollowupQuestions: true,
|
||||
}
|
||||
|
||||
const prompt = await SYSTEM_PROMPT(
|
||||
|
|
|
|||
|
|
@ -535,7 +535,14 @@ describe("addCustomInstructions", () => {
|
|||
"global instructions",
|
||||
"/fake/path",
|
||||
"test-mode",
|
||||
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } },
|
||||
{
|
||||
settings: {
|
||||
maxConcurrentFileReads: 5,
|
||||
todoListEnabled: true,
|
||||
useAgentRules: true,
|
||||
alwaysAllowFollowupQuestions: true,
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
expect(result).toContain("# Agent Rules Standard (AGENTS.md):")
|
||||
|
|
@ -560,7 +567,14 @@ describe("addCustomInstructions", () => {
|
|||
"global instructions",
|
||||
"/fake/path",
|
||||
"test-mode",
|
||||
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: false } },
|
||||
{
|
||||
settings: {
|
||||
maxConcurrentFileReads: 5,
|
||||
todoListEnabled: true,
|
||||
useAgentRules: false,
|
||||
alwaysAllowFollowupQuestions: true,
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
expect(result).not.toContain("# Agent Rules Standard (AGENTS.md):")
|
||||
|
|
@ -614,7 +628,14 @@ describe("addCustomInstructions", () => {
|
|||
"global instructions",
|
||||
"/fake/path",
|
||||
"test-mode",
|
||||
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } },
|
||||
{
|
||||
settings: {
|
||||
maxConcurrentFileReads: 5,
|
||||
todoListEnabled: true,
|
||||
useAgentRules: true,
|
||||
alwaysAllowFollowupQuestions: true,
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
expect(result).toContain("Global Instructions:\nglobal instructions")
|
||||
|
|
@ -653,7 +674,14 @@ describe("addCustomInstructions", () => {
|
|||
"global instructions",
|
||||
"/fake/path",
|
||||
"test-mode",
|
||||
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } },
|
||||
{
|
||||
settings: {
|
||||
maxConcurrentFileReads: 5,
|
||||
todoListEnabled: true,
|
||||
useAgentRules: true,
|
||||
alwaysAllowFollowupQuestions: true,
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
// Should contain both AGENTS.md and .roorules content
|
||||
|
|
@ -714,7 +742,14 @@ describe("addCustomInstructions", () => {
|
|||
"global instructions",
|
||||
"/fake/path",
|
||||
"test-mode",
|
||||
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } },
|
||||
{
|
||||
settings: {
|
||||
maxConcurrentFileReads: 5,
|
||||
todoListEnabled: true,
|
||||
useAgentRules: true,
|
||||
alwaysAllowFollowupQuestions: true,
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
expect(result).toContain("# Agent Rules Standard (AGENTS.md):")
|
||||
|
|
@ -759,7 +794,14 @@ describe("addCustomInstructions", () => {
|
|||
"global instructions",
|
||||
"/fake/path",
|
||||
"test-mode",
|
||||
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } },
|
||||
{
|
||||
settings: {
|
||||
maxConcurrentFileReads: 5,
|
||||
todoListEnabled: true,
|
||||
useAgentRules: true,
|
||||
alwaysAllowFollowupQuestions: true,
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
expect(result).toContain("# Agent Rules Standard (AGENTS.md):")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue