mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
# What does this PR do? This better separates UI from backend code, which was a point of confusion often for our beloved AI friends. ## Test Plan CI
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;
|