Download packages/cli/src/ui/utils/__snapshots__/TableRenderer.test.tsx.snap from SaylorTwift/gemini-cli: direct link, hf CLI and curl.
- Browser
- Download file 29.1 kB
-
https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/ui/utils/__snapshots__/TableRenderer.test.tsx.snap
- Command line
-
hf download hf://SaylorTwift/gemini-cli/packages/cli/src/ui/utils/__snapshots__/TableRenderer.test.tsx.snap
-
curl -L -o TableRenderer.test.tsx.snap https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/ui/utils/__snapshots__/TableRenderer.test.tsx.snap
29.1 kB
| // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | |
| exports[`TableRenderer > 'calculates column widths based on renβ¦' 1`] = ` | |
| "ββββββββββ¬βββββββββ¬βββββββββ | |
| β Col 1 β Col 2 β Col 3 β | |
| ββββββββββΌβββββββββΌβββββββββ€ | |
| β 123456 β Normal β Short β | |
| β Short β 123456 β Normal β | |
| β Normal β Short β 123456 β | |
| ββββββββββ΄βββββββββ΄βββββββββ" | |
| `; | |
| exports[`TableRenderer > 'calculates width correctly for contenβ¦' 1`] = ` | |
| "βββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββ | |
| β Col 1 β Col 2 β Col 3 β | |
| βββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββ€ | |
| β Visit Google (https://google.com) β Plain Text β More Info β | |
| β Info Here β Visit Bing (https://bing.com) β Links β | |
| β Check This β Search β Visit Yahoo (https://yahoo.com) β | |
| βββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > 'does not parse markdown inside code sβ¦' 1`] = ` | |
| "βββββββββββββββββββ¬βββββββββββββββββββββββ¬βββββββββββββββββββ | |
| β Col 1 β Col 2 β Col 3 β | |
| βββββββββββββββββββΌβββββββββββββββββββββββΌβββββββββββββββββββ€ | |
| β **not bold** β _not italic_ β ~~not strike~~ β | |
| β [not link](url) β <u>not underline</u> β https://not.link β | |
| β Normal Text β More Code: *test* β ***nested*** β | |
| βββββββββββββββββββ΄βββββββββββββββββββββββ΄βββββββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > 'handles nested markdown styles recursβ¦' 1`] = ` | |
| "βββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ | |
| β Header 1 β Header 2 β Header 3 β | |
| βββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββ€ | |
| β Bold with Italic and Strike β Normal β Short β | |
| β Short β Bold with Italic and Strike β Normal β | |
| β Normal β Short β Bold with Italic and Strike β | |
| βββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > 'handles non-ASCII characters (emojis β¦' 1`] = ` | |
| "ββββββββββββββββ¬βββββββββββββ¬ββββββββββββββββ | |
| β Emoji π β Asian ζ±ε β Mixed π Text β | |
| ββββββββββββββββΌβββββββββββββΌββββββββββββββββ€ | |
| β Start π End β δ½ ε₯½δΈη β Rocket π Man β | |
| β Thumbs π Up β γγγ«γ‘γ― β Fire π₯ β | |
| ββββββββββββββββ΄βββββββββββββ΄ββββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > 'renders a table with mixed emojis, Asβ¦' 1`] = ` | |
| "βββββββββββββββββ¬ββββββββββββββββββββ¬βββββββββββββββββ | |
| β Mixed π δΈζ β Complex π ζ₯ζ¬θͺ β Text π νκ΅μ΄ β | |
| βββββββββββββββββΌββββββββββββββββββββΌβββββββββββββββββ€ | |
| β δ½ ε₯½ π β γγγ«γ‘γ― π β μλ νμΈμ π β | |
| β World π β Code π» β Pizza π β | |
| βββββββββββββββββ΄ββββββββββββββββββββ΄βββββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > 'renders a table with only Asian charaβ¦' 1`] = ` | |
| "ββββββββββββββββ¬ββββββββββββββββββ¬ββββββββββββββββ | |
| β Chinese δΈζ β Japanese ζ₯ζ¬θͺ β Korean νκ΅μ΄ β | |
| ββββββββββββββββΌββββββββββββββββββΌββββββββββββββββ€ | |
| β δ½ ε₯½ β γγγ«γ‘γ― β μλ νμΈμ β | |
| β δΈη β δΈη β μΈκ³ β | |
| ββββββββββββββββ΄ββββββββββββββββββ΄ββββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > 'renders a table with only emojis and β¦' 1`] = ` | |
| "ββββββββββββ¬ββββββββββββ¬βββββββββββ | |
| β Happy π β Rocket π β Heart β€οΈ β | |
| ββββββββββββΌββββββββββββΌβββββββββββ€ | |
| β Smile π β Fire π₯ β Love π β | |
| β Cool π β Star β β Blue π β | |
| ββββββββββββ΄ββββββββββββ΄βββββββββββ" | |
| `; | |
| exports[`TableRenderer > 'renders complex markdown in rows and β¦' 1`] = ` | |
| "βββββββββββββββββ¬ββββββββββββββββββββββββββββββ | |
| β Feature β Markdown β | |
| βββββββββββββββββΌββββββββββββββββββββββββββββββ€ | |
| β Bold β Bold Text β | |
| β Italic β Italic Text β | |
| β Combined β Bold and Italic β | |
| β Link β Google (https://google.com) β | |
| β Code β const x = 1 β | |
| β Strikethrough β Strike β | |
| β Underline β Underline β | |
| βββββββββββββββββ΄ββββββββββββββββββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > 'renders correctly when headers are emβ¦' 1`] = ` | |
| "ββββββββββ¬βββββββββ | |
| β β β | |
| ββββββββββΌβββββββββ€ | |
| β Data 1 β Data 2 β | |
| ββββββββββ΄βββββββββ" | |
| `; | |
| exports[`TableRenderer > 'renders correctly when there are moreβ¦' 1`] = ` | |
| "ββββββββββββ¬βββββββββββ¬βββββββββββ | |
| β Header 1 β Header 2 β Header 3 β | |
| ββββββββββββΌβββββββββββΌβββββββββββ€ | |
| β Data 1 β Data 2 β β | |
| ββββββββββββ΄βββββββββββ΄βββββββββββ" | |
| `; | |
| exports[`TableRenderer > handles wrapped bold headers without showing markers 1`] = ` | |
| "βββββββββββββββ¬ββββββββ¬ββββββββββ | |
| β Very Long β Short β Another β | |
| β Bold Header β β Long β | |
| β That Will β β Header β | |
| β Wrap β β β | |
| βββββββββββββββΌββββββββΌββββββββββ€ | |
| β Data 1 β Data β Data 3 β | |
| β β 2 β β | |
| βββββββββββββββ΄ββββββββ΄ββββββββββ" | |
| `; | |
| exports[`TableRenderer > renders a 3x3 table correctly 1`] = ` | |
| "ββββββββββββββββ¬βββββββββββββββ¬βββββββββββββββ | |
| β Header 1 β Header 2 β Header 3 β | |
| ββββββββββββββββΌβββββββββββββββΌβββββββββββββββ€ | |
| β Row 1, Col 1 β Row 1, Col 2 β Row 1, Col 3 β | |
| β Row 2, Col 1 β Row 2, Col 2 β Row 2, Col 3 β | |
| β Row 3, Col 1 β Row 3, Col 2 β Row 3, Col 3 β | |
| ββββββββββββββββ΄βββββββββββββββ΄βββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > renders a complex table with mixed content lengths correctly 1`] = ` | |
| "βββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ¬ββββββ¬βββββββββ¬ββββββββββ¬ββββββββ | |
| β Comprehensive Architectural β Implementation Details for β Longitudinal Performance β Strategic Security Framework β Key β Status β Version β Owner β | |
| β Specification for the β the High-Throughput β Analysis Across β for Mitigating Sophisticated β β β β β | |
| β Distributed Infrastructure β Asynchronous Message β Multi-Regional Cloud β Cross-Site Scripting β β β β β | |
| β Layer β Processing Pipeline with β Deployment Clusters β Vulnerabilities β β β β β | |
| β β Extended Scalability β β β β β β β | |
| β β Features and Redundancy β β β β β β β | |
| β β Protocols β β β β β β β | |
| βββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌββββββΌβββββββββΌββββββββββΌββββββββ€ | |
| β The primary architecture β Each message is processed β Historical data indicates a β A multi-layered defense β INF β Active β v2.4 β J. β | |
| β utilizes a decoupled β through a series of β significant reduction in β strategy incorporates β β β β Doe β | |
| β microservices approach, β specialized workers that β tail latency when utilizing β content security policies, β β β β β | |
| β leveraging container β handle data transformation, β edge computing nodes closer β input sanitization β β β β β | |
| β orchestration for β validation, and persistent β to the geographic location β libraries, and regular β β β β β | |
| β scalability and fault β storage using a persistent β of the end-user base. β automated penetration β β β β β | |
| β tolerance in high-load β queue. β β testing routines. β β β β β | |
| β scenarios. β β Monitoring tools have β β β β β β | |
| β β The pipeline features β captured a steady increase β Developers are required to β β β β β | |
| β This layer provides the β built-in retry mechanisms β in throughput efficiency β undergo mandatory security β β β β β | |
| β fundamental building blocks β with exponential backoff to β since the introduction of β training focusing on the β β β β β | |
| β for service discovery, load β ensure message delivery β the vectorized query engine β OWASP Top Ten to ensure that β β β β β | |
| β balancing, and β integrity even during β in the primary data β security is integrated into β β β β β | |
| β inter-service communication β transient network or service β warehouse. β the initial design phase. β β β β β | |
| β via highly efficient β failures. β β β β β β β | |
| β protocol buffers. β β Resource utilization β The implementation of a β β β β β | |
| β β Horizontal autoscaling is β metrics demonstrate that β robust Identity and Access β β β β β | |
| β Advanced telemetry and β triggered automatically β the transition to β Management system ensures β β β β β | |
| β logging integrations allow β based on the depth of the β serverless compute for β that the principle of least β β β β β | |
| β for real-time monitoring of β processing queue, ensuring β intermittent tasks has β privilege is strictly β β β β β | |
| β system health and rapid β consistent performance β resulted in a thirty β enforced across all β β β β β | |
| β identification of β during unexpected traffic β percent cost optimization. β environments. β β β β β | |
| β bottlenecks within the β spikes. β β β β β β β | |
| β service mesh. β β β β β β β β | |
| βββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββ΄ββββββ΄βββββββββ΄ββββββββββ΄ββββββββ" | |
| `; | |
| exports[`TableRenderer > renders a complex table with mixed content lengths correctly 2`] = ` | |
| " | |
| βββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ¬ββββββ¬βββββββββ¬ββββββββββ¬ββββββββ | |
| β Comprehensive Architectural β Implementation Details for β Longitudinal Performance β Strategic Security Framework β Key β Status β Version β Owner β | |
| β Specification for the β the High-Throughput β Analysis Across β for Mitigating Sophisticated β β β β β | |
| β Distributed Infrastructure β Asynchronous Message β Multi-Regional Cloud β Cross-Site Scripting β β β β β | |
| β Layer β Processing Pipeline with β Deployment Clusters β Vulnerabilities β β β β β | |
| β β Extended Scalability β β β β β β β | |
| β β Features and Redundancy β β β β β β β | |
| β β Protocols β β β β β β β | |
| βββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌββββββΌβββββββββΌββββββββββΌββββββββ€ | |
| β The primary architecture β Each message is processed β Historical data indicates a β A multi-layered defense β INF β Active β v2.4 β J. β | |
| β utilizes a decoupled β through a series of β significant reduction in β strategy incorporates β β β β Doe β | |
| β microservices approach, β specialized workers that β tail latency when utilizing β content security policies, β β β β β | |
| β leveraging container β handle data transformation, β edge computing nodes closer β input sanitization β β β β β | |
| β orchestration for β validation, and persistent β to the geographic location β libraries, and regular β β β β β | |
| β scalability and fault β storage using a persistent β of the end-user base. β automated penetration β β β β β | |
| β tolerance in high-load β queue. β β testing routines. β β β β β | |
| β scenarios. β β Monitoring tools have β β β β β β | |
| β β The pipeline features β captured a steady increase β Developers are required to β β β β β | |
| β This layer provides the β built-in retry mechanisms β in throughput efficiency β undergo mandatory security β β β β β | |
| β fundamental building blocks β with exponential backoff to β since the introduction of β training focusing on the β β β β β | |
| β for service discovery, load β ensure message delivery β the vectorized query engine β OWASP Top Ten to ensure that β β β β β | |
| β balancing, and β integrity even during β in the primary data β security is integrated into β β β β β | |
| β inter-service communication β transient network or service β warehouse. β the initial design phase. β β β β β | |
| β via highly efficient β failures. β β β β β β β | |
| β protocol buffers. β β Resource utilization β The implementation of a β β β β β | |
| β β Horizontal autoscaling is β metrics demonstrate that β robust Identity and Access β β β β β | |
| β Advanced telemetry and β triggered automatically β the transition to β Management system ensures β β β β β | |
| β logging integrations allow β based on the depth of the β serverless compute for β that the principle of least β β β β β | |
| β for real-time monitoring of β processing queue, ensuring β intermittent tasks has β privilege is strictly β β β β β | |
| β system health and rapid β consistent performance β resulted in a thirty β enforced across all β β β β β | |
| β identification of β during unexpected traffic β percent cost optimization. β environments. β β β β β | |
| β bottlenecks within the β spikes. β β β β β β β | |
| β service mesh. β β β β β β β β | |
| βββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββ΄ββββββ΄βββββββββ΄ββββββββββ΄ββββββββ | |
| " | |
| `; | |
| exports[`TableRenderer > renders a table with long headers and 4 columns correctly 1`] = ` | |
| "βββββββββββββββββ¬ββββββββββββββββ¬βββββββββββββββββββ¬βββββββββββββββββββ | |
| β Very Long β Very Long β Very Long Column β Very Long Column β | |
| β Column Header β Column Header β Header Three β Header Four β | |
| β One β Two β β β | |
| βββββββββββββββββΌββββββββββββββββΌβββββββββββββββββββΌβββββββββββββββββββ€ | |
| β Data 1.1 β Data 1.2 β Data 1.3 β Data 1.4 β | |
| β Data 2.1 β Data 2.2 β Data 2.3 β Data 2.4 β | |
| β Data 3.1 β Data 3.2 β Data 3.3 β Data 3.4 β | |
| βββββββββββββββββ΄ββββββββββββββββ΄βββββββββββββββββββ΄βββββββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > strips bold markers from headers and renders them correctly 1`] = ` | |
| "βββββββββββββββ¬ββββββββββββββββ¬βββββββββββββββ | |
| β Bold Header β Normal Header β Another Bold β | |
| βββββββββββββββΌββββββββββββββββΌβββββββββββββββ€ | |
| β Data 1 β Data 2 β Data 3 β | |
| βββββββββββββββ΄ββββββββββββββββ΄βββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > wraps all long columns correctly 1`] = ` | |
| "ββββββββββββββββββ¬βββββββββββββββββ¬ββββββββββββββββββ | |
| β Col 1 β Col 2 β Col 3 β | |
| ββββββββββββββββββΌβββββββββββββββββΌββββββββββββββββββ€ | |
| β This is a very β This is also a β And this is the β | |
| β long text that β very long text β third long text β | |
| β needs wrapping β that needs β that needs β | |
| β in column 1 β wrapping in β wrapping in β | |
| β β column 2 β column 3 β | |
| ββββββββββββββββββ΄βββββββββββββββββ΄ββββββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > wraps columns with punctuation correctly 1`] = ` | |
| "βββββββββββββββββββββ¬ββββββββββββββββ¬ββββββββββββββββββ | |
| β Punctuation 1 β Punctuation 2 β Punctuation 3 β | |
| βββββββββββββββββββββΌββββββββββββββββΌββββββββββββββββββ€ | |
| β Start. Stop. β Semi; colon: β At@ Hash | |
| β Comma, separated. β Pipe| Slash/ β Dollar$ β | |
| β Exclamation! β Backslash\\ β Percent% Caret^ β | |
| β Question? β β Ampersand | |
| β hyphen-ated β β Asterisk* β | |
| βββββββββββββββββββββ΄ββββββββββββββββ΄ββββββββββββββββββ" | |
| `; | |
| exports[`TableRenderer > wraps long cell content correctly 1`] = ` | |
| "βββββββββ¬ββββββββββββββββββββββββββββββ¬ββββββββ | |
| β Col 1 β Col 2 β Col 3 β | |
| βββββββββΌββββββββββββββββββββββββββββββΌββββββββ€ | |
| β Short β This is a very long cell β Short β | |
| β β content that should wrap to β β | |
| β β multiple lines β β | |
| βββββββββ΄ββββββββββββββββββββββββββββββ΄ββββββββ" | |
| `; | |
| exports[`TableRenderer > wraps mixed long and short columns correctly 1`] = ` | |
| "βββββββββ¬βββββββββββββββββββββββββββ¬βββββββββ | |
| β Short β Long β Medium β | |
| βββββββββΌβββββββββββββββββββββββββββΌβββββββββ€ | |
| β Tiny β This is a very long text β Not so β | |
| β β that definitely needs to β long β | |
| β β wrap to the next line β β | |
| βββββββββ΄βββββββββββββββββββββββββββ΄βββββββββ" | |
| `; | |