This commit is contained in:
Eason Goodale
2025-04-19 22:55:37 -07:00
parent 2bcc15a839
commit 1e0a7cc313
7 changed files with 168 additions and 39 deletions

View File

@@ -12,14 +12,18 @@ vi.mock("../src/utils/input-utils.js", () => ({
import ImagePickerOverlay from "../src/components/chat/image-picker-overlay.js";
async function type(stdin, text, flush) {
async function type(
stdin: NodeJS.WritableStream & { write(str: string): void },
text: string,
flush: () => Promise<void>,
): Promise<void> {
stdin.write(text);
await flush();
}
describe("Image picker overlay", () => {
let TMP;
let CHILD;
let TMP: string;
let CHILD: string;
beforeAll(() => {
TMP = fs.mkdtempSync(path.join(process.cwd(), "overlay-test-"));