Skip to content

Commit 2d68954

Browse files
committed
fix: benchify now reads from local files instead of client-side files,
removed extra logging
1 parent b35ac6c commit 2d68954

File tree

3 files changed

+148
-215
lines changed

3 files changed

+148
-215
lines changed

backend/src/__tests__/process-str-replace.test.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
import { describe, expect, it, spyOn, beforeEach, afterEach, mock } from 'bun:test'
1+
import {
2+
describe,
3+
expect,
4+
it,
5+
spyOn,
6+
beforeEach,
7+
afterEach,
8+
mock,
9+
} from 'bun:test'
210
import { applyPatch } from 'diff'
311

412
// Mock the benchify module to simulate missing API key
@@ -8,7 +16,7 @@ mock.module('benchify', () => ({
816
runFixer() {
917
return Promise.resolve([])
1018
}
11-
}
19+
},
1220
}))
1321

1422
import { processStrReplace } from '../process-str-replace'
@@ -519,7 +527,6 @@ describe('Benchify resilience', () => {
519527
toolCalls: [],
520528
toolResults: [],
521529
ws: {} as any,
522-
fileContext: mockFileContext,
523530
agentStepId: 'test-step',
524531
clientSessionId: 'test-session',
525532
userInputId: 'test-input',
@@ -547,7 +554,6 @@ describe('Benchify resilience', () => {
547554
toolCalls: [],
548555
toolResults: [],
549556
ws: {} as any,
550-
fileContext: mockFileContext,
551557
agentStepId: 'test-step',
552558
clientSessionId: 'test-session',
553559
userInputId: 'test-input',
@@ -585,7 +591,6 @@ describe('Benchify resilience', () => {
585591
toolCalls: [],
586592
toolResults: [],
587593
ws: {} as any,
588-
fileContext: mockFileContext,
589594
agentStepId: 'test-step',
590595
clientSessionId: 'test-session',
591596
userInputId: 'test-input',

0 commit comments

Comments
 (0)