File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -30,34 +30,6 @@ describe('Agent Validation', () => {
3030 error : ( ) => { } ,
3131 } ,
3232 } ) )
33-
34- // Mock backend utility module
35- mockModule ( '@codebuff/backend/util/file-resolver' , ( ) => ( {
36- resolvePromptField : (
37- field : string | { path : string } ,
38- basePath : string ,
39- ) => {
40- if ( typeof field === 'string' ) {
41- return field
42- }
43- if ( field . path ?. includes ( 'brainstormer-system.md' ) ) {
44- return 'You are a creative brainstormer.'
45- }
46- if ( field . path ?. includes ( 'brainstormer-user-input.md' ) ) {
47- return 'Help brainstorm ideas.'
48- }
49- return 'Mock content'
50- } ,
51- resolveFileContent : ( filePath : string , basePath : string ) => {
52- if ( filePath . includes ( 'brainstormer-system.md' ) ) {
53- return 'You are a creative brainstormer.'
54- }
55- if ( filePath . includes ( 'brainstormer-user-input.md' ) ) {
56- return 'Help brainstorm ideas.'
57- }
58- return 'Mock content'
59- } ,
60- } ) )
6133 } )
6234
6335 beforeEach ( ( ) => {
You can’t perform that action at this time.
0 commit comments