mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-13 21:07:00 -07:00
test(cli): fix missing exports in terminalUtils mock for InputPrompt tests
This commit is contained in:
@@ -80,6 +80,9 @@ vi.mock('../utils/clipboardUtils.js');
|
||||
vi.mock('../hooks/useKittyKeyboardProtocol.js');
|
||||
vi.mock('../utils/terminalUtils.js', () => ({
|
||||
isLowColorDepth: vi.fn(() => false),
|
||||
getColorDepth: vi.fn(() => 24),
|
||||
isITerm2: vi.fn(() => false),
|
||||
isVSCode: vi.fn(() => false),
|
||||
}));
|
||||
|
||||
// Mock ink BEFORE importing components that use it to intercept terminalCursorPosition
|
||||
|
||||
+5
-35
@@ -1,41 +1,11 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="920" height="615" viewBox="0 0 920 615">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="920" height="71" viewBox="0 0 920 71">
|
||||
<style>
|
||||
text { font-family: Consolas, "Courier New", monospace; font-size: 14px; dominant-baseline: text-before-edge; white-space: pre; }
|
||||
</style>
|
||||
<rect width="920" height="615" fill="#000000" />
|
||||
<rect width="920" height="71" fill="#000000" />
|
||||
<g transform="translate(10, 10)">
|
||||
<text x="0" y="19" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> ERROR [vitest] No "isITerm2" export is defined on the "../utils/terminalUtils.js" mock. Did you </text>
|
||||
<text x="0" y="36" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> forget to return it from "vi.mock"? </text>
|
||||
<text x="0" y="53" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> If you need to partially mock a module, you can use "importOriginal" helper inside: </text>
|
||||
<text x="0" y="87" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> - If you need to partially mock a module, you can use "importOriginal" helper inside:\t </text>
|
||||
<text x="0" y="104" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> - \t </text>
|
||||
<text x="0" y="121" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> -VitestMocker.createE </text>
|
||||
<text x="0" y="138" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> rror (file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/ </text>
|
||||
<text x="0" y="155" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> execute.B7h3T_Hc.js:284:17) </text>
|
||||
<text x="0" y="172" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> -Object.get </text>
|
||||
<text x="0" y="189" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> (file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/execute.B7 </text>
|
||||
<text x="0" y="206" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> h3T_Hc.js:330:16) </text>
|
||||
<text x="0" y="223" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> - HalfLinePaddedBoxInternal (src/ui/components/shared/HalfLinePaddedBox.tsx:82:19) </text>
|
||||
<text x="0" y="240" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> -Object.react-stack-botto </text>
|
||||
<text x="0" y="257" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> m-frame (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/r </text>
|
||||
<text x="0" y="274" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> eact-reconciler.development.js:15859:20) </text>
|
||||
<text x="0" y="291" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> -renderWithHook </text>
|
||||
<text x="0" y="308" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> s (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-recon </text>
|
||||
<text x="0" y="325" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> ciler.development.js:3221:22) </text>
|
||||
<text x="0" y="342" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> -updateFunctionCompo </text>
|
||||
<text x="0" y="359" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> nent (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react- </text>
|
||||
<text x="0" y="376" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> reconciler.development.js:6475:19) </text>
|
||||
<text x="0" y="393" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> -beginWork </text>
|
||||
<text x="0" y="410" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconciler </text>
|
||||
<text x="0" y="427" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> .development.js:8009:18) </text>
|
||||
<text x="0" y="444" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> -runWithFiberInD </text>
|
||||
<text x="0" y="461" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> EV (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco </text>
|
||||
<text x="0" y="478" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> nciler.development.js:1738:13) </text>
|
||||
<text x="0" y="495" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> -performUnitOfWo </text>
|
||||
<text x="0" y="512" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> rk (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco </text>
|
||||
<text x="0" y="529" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> nciler.development.js:12834:22) </text>
|
||||
<text x="0" y="546" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> -workLoopSync </text>
|
||||
<text x="0" y="563" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconci </text>
|
||||
<text x="0" y="580" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> ler.development.js:12644:41) </text>
|
||||
<text x="0" y="2" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs">▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀</text>
|
||||
<text x="0" y="19" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs"> > Type your message or @path/to/file </text>
|
||||
<text x="0" y="36" fill="#ffffff" textLength="900" lengthAdjust="spacingAndGlyphs">▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -90,237 +90,81 @@ exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios >
|
||||
────────────────────────────────────────────────────────────────────────────────────────────────────"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > mouse interaction > should toggle paste expansion on double-click 1`] = `
|
||||
exports[`InputPrompt > History Navigation and Completion Suppression > should not render suggestions during history navigation 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
> second message
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
"
|
||||
ERROR [vitest] No "isITerm2" export is defined on the "../utils/terminalUtils.js" mock. Did you
|
||||
forget to return it from "vi.mock"?
|
||||
If you need to partially mock a module, you can use "importOriginal" helper inside:
|
||||
`;
|
||||
|
||||
- If you need to partially mock a module, you can use "importOriginal" helper inside:\\t
|
||||
- \\t
|
||||
-VitestMocker.createE
|
||||
rror (file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/
|
||||
execute.B7h3T_Hc.js:284:17)
|
||||
-Object.get
|
||||
(file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/execute.B7
|
||||
h3T_Hc.js:330:16)
|
||||
- HalfLinePaddedBoxInternal (src/ui/components/shared/HalfLinePaddedBox.tsx:82:19)
|
||||
-Object.react-stack-botto
|
||||
m-frame (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/r
|
||||
eact-reconciler.development.js:15859:20)
|
||||
-renderWithHook
|
||||
s (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-recon
|
||||
ciler.development.js:3221:22)
|
||||
-updateFunctionCompo
|
||||
nent (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-
|
||||
reconciler.development.js:6475:19)
|
||||
-beginWork
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconciler
|
||||
.development.js:8009:18)
|
||||
-runWithFiberInD
|
||||
EV (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:1738:13)
|
||||
-performUnitOfWo
|
||||
rk (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:12834:22)
|
||||
-workLoopSync
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconci
|
||||
ler.development.js:12644:41)
|
||||
exports[`InputPrompt > command search (Ctrl+R when not in shell) > expands and collapses long suggestion via Right/Left arrows > command-search-render-collapsed-match 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
(r:) Type your message or @path/to/file
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll →
|
||||
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
|
||||
...
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > command search (Ctrl+R when not in shell) > expands and collapses long suggestion via Right/Left arrows > command-search-render-expanded-match 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
(r:) Type your message or @path/to/file
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll ←
|
||||
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
|
||||
llllllllllllllllllllllllllllllllllllllllllllllllll
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > command search (Ctrl+R when not in shell) > renders match window and expanded view (snapshots) > command-search-render-collapsed-match 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
(r:) commit
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
git commit -m "feat: add search" in src/app
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > command search (Ctrl+R when not in shell) > renders match window and expanded view (snapshots) > command-search-render-expanded-match 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
(r:) commit
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
git commit -m "feat: add search" in src/app
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > image path transformation snapshots > should snapshot collapsed image path 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
> [Image ...reenshot2x.png]
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > image path transformation snapshots > should snapshot expanded image path when cursor is on it 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
> @/path/to/screenshots/screenshot2x.png
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > mouse interaction > should toggle paste expansion on double-click 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
> [Pasted Text: 10 lines]
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > mouse interaction > should toggle paste expansion on double-click 2`] = `
|
||||
"
|
||||
ERROR [vitest] No "isITerm2" export is defined on the "../utils/terminalUtils.js" mock. Did you
|
||||
forget to return it from "vi.mock"?
|
||||
If you need to partially mock a module, you can use "importOriginal" helper inside:
|
||||
|
||||
- If you need to partially mock a module, you can use "importOriginal" helper inside:\\t
|
||||
- \\t
|
||||
-VitestMocker.createE
|
||||
rror (file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/
|
||||
execute.B7h3T_Hc.js:284:17)
|
||||
-Object.get
|
||||
(file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/execute.B7
|
||||
h3T_Hc.js:330:16)
|
||||
- HalfLinePaddedBoxInternal (src/ui/components/shared/HalfLinePaddedBox.tsx:82:19)
|
||||
-Object.react-stack-botto
|
||||
m-frame (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/r
|
||||
eact-reconciler.development.js:15859:20)
|
||||
-renderWithHook
|
||||
s (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-recon
|
||||
ciler.development.js:3221:22)
|
||||
-updateFunctionCompo
|
||||
nent (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-
|
||||
reconciler.development.js:6475:19)
|
||||
-beginWork
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconciler
|
||||
.development.js:8009:18)
|
||||
-runWithFiberInD
|
||||
EV (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:1738:13)
|
||||
-performUnitOfWo
|
||||
rk (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:12834:22)
|
||||
-workLoopSync
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconci
|
||||
ler.development.js:12644:41)
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
> [Pasted Text: 10 lines]
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > mouse interaction > should toggle paste expansion on double-click 3`] = `
|
||||
"
|
||||
ERROR [vitest] No "isITerm2" export is defined on the "../utils/terminalUtils.js" mock. Did you
|
||||
forget to return it from "vi.mock"?
|
||||
If you need to partially mock a module, you can use "importOriginal" helper inside:
|
||||
|
||||
- If you need to partially mock a module, you can use "importOriginal" helper inside:\\t
|
||||
- \\t
|
||||
-VitestMocker.createE
|
||||
rror (file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/
|
||||
execute.B7h3T_Hc.js:284:17)
|
||||
-Object.get
|
||||
(file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/execute.B7
|
||||
h3T_Hc.js:330:16)
|
||||
- HalfLinePaddedBoxInternal (src/ui/components/shared/HalfLinePaddedBox.tsx:82:19)
|
||||
-Object.react-stack-botto
|
||||
m-frame (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/r
|
||||
eact-reconciler.development.js:15859:20)
|
||||
-renderWithHook
|
||||
s (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-recon
|
||||
ciler.development.js:3221:22)
|
||||
-updateFunctionCompo
|
||||
nent (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-
|
||||
reconciler.development.js:6475:19)
|
||||
-beginWork
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconciler
|
||||
.development.js:8009:18)
|
||||
-runWithFiberInD
|
||||
EV (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:1738:13)
|
||||
-performUnitOfWo
|
||||
rk (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:12834:22)
|
||||
-workLoopSync
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconci
|
||||
ler.development.js:12644:41)
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > mouse interaction > should toggle paste expansion on double-click 4`] = `
|
||||
"
|
||||
ERROR [vitest] No "isITerm2" export is defined on the "../utils/terminalUtils.js" mock. Did you
|
||||
forget to return it from "vi.mock"?
|
||||
If you need to partially mock a module, you can use "importOriginal" helper inside:
|
||||
|
||||
- If you need to partially mock a module, you can use "importOriginal" helper inside:\\t
|
||||
- \\t
|
||||
-VitestMocker.createE
|
||||
rror (file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/
|
||||
execute.B7h3T_Hc.js:284:17)
|
||||
-Object.get
|
||||
(file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/execute.B7
|
||||
h3T_Hc.js:330:16)
|
||||
- HalfLinePaddedBoxInternal (src/ui/components/shared/HalfLinePaddedBox.tsx:82:19)
|
||||
-Object.react-stack-botto
|
||||
m-frame (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/r
|
||||
eact-reconciler.development.js:15859:20)
|
||||
-renderWithHook
|
||||
s (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-recon
|
||||
ciler.development.js:3221:22)
|
||||
-updateFunctionCompo
|
||||
nent (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-
|
||||
reconciler.development.js:6475:19)
|
||||
-beginWork
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconciler
|
||||
.development.js:8009:18)
|
||||
-runWithFiberInD
|
||||
EV (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:1738:13)
|
||||
-performUnitOfWo
|
||||
rk (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:12834:22)
|
||||
-workLoopSync
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconci
|
||||
ler.development.js:12644:41)
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > mouse interaction > should toggle paste expansion on double-click 5`] = `
|
||||
"
|
||||
ERROR [vitest] No "isITerm2" export is defined on the "../utils/terminalUtils.js" mock. Did you
|
||||
forget to return it from "vi.mock"?
|
||||
If you need to partially mock a module, you can use "importOriginal" helper inside:
|
||||
|
||||
- If you need to partially mock a module, you can use "importOriginal" helper inside:\\t
|
||||
- \\t
|
||||
-VitestMocker.createE
|
||||
rror (file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/
|
||||
execute.B7h3T_Hc.js:284:17)
|
||||
-Object.get
|
||||
(file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/execute.B7
|
||||
h3T_Hc.js:330:16)
|
||||
- HalfLinePaddedBoxInternal (src/ui/components/shared/HalfLinePaddedBox.tsx:82:19)
|
||||
-Object.react-stack-botto
|
||||
m-frame (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/r
|
||||
eact-reconciler.development.js:15859:20)
|
||||
-renderWithHook
|
||||
s (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-recon
|
||||
ciler.development.js:3221:22)
|
||||
-updateFunctionCompo
|
||||
nent (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-
|
||||
reconciler.development.js:6475:19)
|
||||
-beginWork
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconciler
|
||||
.development.js:8009:18)
|
||||
-runWithFiberInD
|
||||
EV (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:1738:13)
|
||||
-performUnitOfWo
|
||||
rk (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:12834:22)
|
||||
-workLoopSync
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconci
|
||||
ler.development.js:12644:41)
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > mouse interaction > should toggle paste expansion on double-click 6`] = `
|
||||
"
|
||||
ERROR [vitest] No "isITerm2" export is defined on the "../utils/terminalUtils.js" mock. Did you
|
||||
forget to return it from "vi.mock"?
|
||||
If you need to partially mock a module, you can use "importOriginal" helper inside:
|
||||
|
||||
- If you need to partially mock a module, you can use "importOriginal" helper inside:\\t
|
||||
- \\t
|
||||
-VitestMocker.createE
|
||||
rror (file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/
|
||||
execute.B7h3T_Hc.js:284:17)
|
||||
-Object.get
|
||||
(file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/execute.B7
|
||||
h3T_Hc.js:330:16)
|
||||
- HalfLinePaddedBoxInternal (src/ui/components/shared/HalfLinePaddedBox.tsx:82:19)
|
||||
-Object.react-stack-botto
|
||||
m-frame (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/r
|
||||
eact-reconciler.development.js:15859:20)
|
||||
-renderWithHook
|
||||
s (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-recon
|
||||
ciler.development.js:3221:22)
|
||||
-updateFunctionCompo
|
||||
nent (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-
|
||||
reconciler.development.js:6475:19)
|
||||
-beginWork
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconciler
|
||||
.development.js:8009:18)
|
||||
-runWithFiberInD
|
||||
EV (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:1738:13)
|
||||
-performUnitOfWo
|
||||
rk (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:12834:22)
|
||||
-workLoopSync
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconci
|
||||
ler.development.js:12644:41)
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
> [Pasted Text: 10 lines]
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
"
|
||||
`;
|
||||
|
||||
@@ -333,40 +177,28 @@ exports[`InputPrompt > multiline rendering > should correctly render multiline i
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > snapshots > should not show inverted cursor when shell is focused 1`] = `
|
||||
"
|
||||
ERROR [vitest] No "isITerm2" export is defined on the "../utils/terminalUtils.js" mock. Did you
|
||||
forget to return it from "vi.mock"?
|
||||
If you need to partially mock a module, you can use "importOriginal" helper inside:
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
> Type your message or @path/to/file
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄"
|
||||
`;
|
||||
|
||||
- If you need to partially mock a module, you can use "importOriginal" helper inside:\\t
|
||||
- \\t
|
||||
-VitestMocker.createE
|
||||
rror (file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/
|
||||
execute.B7h3T_Hc.js:284:17)
|
||||
-Object.get
|
||||
(file:///Users/mattkorwel/dev/gemini-cli/main/node_modules/vitest/dist/chunks/execute.B7
|
||||
h3T_Hc.js:330:16)
|
||||
- HalfLinePaddedBoxInternal (src/ui/components/shared/HalfLinePaddedBox.tsx:82:19)
|
||||
-Object.react-stack-botto
|
||||
m-frame (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/r
|
||||
eact-reconciler.development.js:15859:20)
|
||||
-renderWithHook
|
||||
s (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-recon
|
||||
ciler.development.js:3221:22)
|
||||
-updateFunctionCompo
|
||||
nent (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-
|
||||
reconciler.development.js:6475:19)
|
||||
-beginWork
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconciler
|
||||
.development.js:8009:18)
|
||||
-runWithFiberInD
|
||||
EV (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:1738:13)
|
||||
-performUnitOfWo
|
||||
rk (/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reco
|
||||
nciler.development.js:12834:22)
|
||||
-workLoopSync
|
||||
(/Users/mattkorwel/dev/gemini-cli/main/node_modules/react-reconciler/cjs/react-reconci
|
||||
ler.development.js:12644:41)
|
||||
exports[`InputPrompt > snapshots > should render correctly in shell mode 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
! Type your message or @path/to/file
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > snapshots > should render correctly in yolo mode 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
* Type your message or @path/to/file
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`InputPrompt > snapshots > should render correctly when accepting edits 1`] = `
|
||||
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
> Type your message or @path/to/file
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user