MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / edit

Function edit

graph-ui/src/adr/AdrWorkspace.test.tsx:44–51  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

42}
43async function click(name: string) { await act(async () => button(name).click()); }
44async function edit(content: string) {
45 if (!host.querySelector('textarea')) await click('Edit');
46 await act(async () => {
47 const input = host.querySelector('textarea')!;
48 Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype, 'value')!.set!.call(input, content);
49 input.dispatchEvent(new Event('input', { bubbles: true }));
50 });
51}
52function deferred<T>() {
53 let resolve!: (value: T) => void;
54 let reject!: (reason: unknown) => void;

Callers 1

Calls 1

clickFunction · 0.70

Tested by

no test coverage detected