mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-19 19:30:05 +00:00
## Summary: This commit adds infinite scroll pagination to the chat completions and responses tables. ## Test Plan: 1. Run unit tests: npm run test 2. Manual testing: Navigate to chat completions/responses pages 3. Verify infinite scroll triggers when approaching bottom 4. Added playwright tests: npm run test:e2e
23 lines
558 B
TypeScript
23 lines
558 B
TypeScript
// Import llama-stack-client shims for Node environment
|
|
import "llama-stack-client/shims/node";
|
|
|
|
// Add any other global test setup here
|
|
import "@testing-library/jest-dom";
|
|
|
|
// Mock ResizeObserver globally
|
|
global.ResizeObserver = class ResizeObserver {
|
|
observe() {}
|
|
unobserve() {}
|
|
disconnect() {}
|
|
};
|
|
|
|
// Mock IntersectionObserver globally
|
|
global.IntersectionObserver = class IntersectionObserver {
|
|
constructor(callback: IntersectionObserverCallback) {}
|
|
observe() {}
|
|
unobserve() {}
|
|
disconnect() {}
|
|
takeRecords() {
|
|
return [];
|
|
}
|
|
} as any;
|