test(e2e): stabilize apply_diff tests using toolUsage fallback and helper; restore @roo-code/types imports

This commit is contained in:
Roo Code 2025-10-21 08:31:23 +00:00
parent 8a9083472a
commit cc56916bd4

View file

@ -3,23 +3,7 @@ import * as fs from "fs/promises"
import * as path from "path"
import * as vscode from "vscode"
/**
* Local minimal typings to avoid module resolution issues in e2e package.
* We only use a subset of fields in these tests.
*/
type ClineMessage = {
type: "ask" | "say"
say?: string
ask?: string
text?: string
}
const RooCodeEventName = {
Message: "message",
TaskStarted: "taskStarted",
TaskCompleted: "taskCompleted",
} as const
import { RooCodeEventName, type ClineMessage } from "@roo-code/types"
import { waitFor, sleep } from "../utils"
import { setDefaultSuiteTimeout } from "../test-utils"