mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-07-01 00:10:21 -05:00
* refactor: Scope console logs to `DEV` + `VITE_DEBUG` env vars * refactor: skip MCP proxy probe when no server requires it * refactor: suppress expected disconnect errors during MCP client shutdown * refactor: Deduplicate requests * refactor: deduplicate model fetching across ROUTER and MODEL modes * refactor: Clean up models logic * chore: Add `.env.example` file * refactor: replace client-side CORS proxy probe with server status flag * refactor: Post-review fixes * test: add vitest client setup with API fetch mocks
13 lines
432 B
TypeScript
13 lines
432 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { render } from 'vitest-browser-svelte';
|
|
import TestWrapper from './components/TestWrapper.svelte';
|
|
|
|
describe('/+page.svelte', () => {
|
|
it('should render page without throwing', async () => {
|
|
// Basic smoke test - page should render without throwing errors.
|
|
// API calls are mocked in vitest-setup-client.ts.
|
|
await render(TestWrapper);
|
|
expect(true).toBe(true);
|
|
});
|
|
});
|