MCPcopy Create free account
hub / github.com/anus-dev/ANUS / exitInsertMode

Function exitInsertMode

packages/cli/src/ui/hooks/vim.test.ts:149–157  ·  view source on GitHub ↗
(result: {
    current: {
      handleInput: (input: { sequence: string; name: string }) => void;
    };
  })

Source from the content-addressed store, hash-verified

147 );
148
149 const exitInsertMode = (result: {
150 current: {
151 handleInput: (input: { sequence: string; name: string }) => void;
152 };
153 }) => {
154 act(() => {
155 result.current.handleInput({ sequence: '\u001b', name: 'escape' });
156 });
157 };
158
159 beforeEach(() => {
160 vi.clearAllMocks();

Callers 1

vim.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected