You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('handles wrapped bold headers without showing markers',()=>{
185
+
constheaders=[
186
+
'**Very Long Bold Header That Will Wrap**',
187
+
'Short',
188
+
'**Another Long Header**',
189
+
];
190
+
constrows=[['Data 1','Data 2','Data 3']];
191
+
constterminalWidth=40;
192
+
193
+
const{ lastFrame }=renderWithProviders(
194
+
<TableRenderer
195
+
headers={headers}
196
+
rows={rows}
197
+
terminalWidth={terminalWidth}
198
+
/>,
199
+
);
200
+
201
+
constoutput=lastFrame();
202
+
// Markers should be gone
203
+
expect(output).not.toContain('**');
204
+
expect(output).toContain('Very Long');
205
+
expect(output).toMatchSnapshot();
206
+
});
207
+
208
+
it('renders a complex table with mixed content lengths correctly',()=>{
209
+
constheaders=[
210
+
'Comprehensive Architectural Specification for the Distributed Infrastructure Layer',
211
+
'Implementation Details for the High-Throughput Asynchronous Message Processing Pipeline with Extended Scalability Features and Redundancy Protocols',
212
+
'Longitudinal Performance Analysis Across Multi-Regional Cloud Deployment Clusters',
213
+
'Strategic Security Framework for Mitigating Sophisticated Cross-Site Scripting Vulnerabilities',
214
+
'Key',
215
+
'Status',
216
+
'Version',
217
+
'Owner',
218
+
];
219
+
constrows=[
220
+
[
221
+
'The primary architecture utilizes a decoupled microservices approach, leveraging container orchestration for scalability and fault tolerance in high-load scenarios.\n\nThis layer provides the fundamental building blocks for service discovery, load balancing, and inter-service communication via highly efficient protocol buffers.\n\nAdvanced telemetry and logging integrations allow for real-time monitoring of system health and rapid identification of bottlenecks within the service mesh.',
222
+
'Each message is processed through a series of specialized workers that handle data transformation, validation, and persistent storage using a persistent queue.\n\nThe pipeline features built-in retry mechanisms with exponential backoff to ensure message delivery integrity even during transient network or service failures.\n\nHorizontal autoscaling is triggered automatically based on the depth of the processing queue, ensuring consistent performance during unexpected traffic spikes.',
223
+
'Historical data indicates a significant reduction in tail latency when utilizing edge computing nodes closer to the geographic location of the end-user base.\n\nMonitoring tools have captured a steady increase in throughput efficiency since the introduction of the vectorized query engine in the primary data warehouse.\n\nResource utilization metrics demonstrate that the transition to serverless compute for intermittent tasks has resulted in a thirty percent cost optimization.',
224
+
'A multi-layered defense strategy incorporates content security policies, input sanitization libraries, and regular automated penetration testing routines.\n\nDevelopers are required to undergo mandatory security training focusing on the OWASP Top Ten to ensure that security is integrated into the initial design phase.\n\nThe implementation of a robust Identity and Access Management system ensures that the principle of least privilege is strictly enforced across all environments.',
0 commit comments