@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
19 lines (15 loc) • 500 B
text/typescript
import fs from 'node:fs';
import { resolve } from 'node:path';
import { describe, expect, it } from 'vitest';
describe('Desktop Routes', () => {
const appRootDir = resolve(__dirname, '..');
const desktopRoutes = [
'(backend)/trpc/desktop/[trpc]/route.ts',
'desktop/devtools/page.tsx',
'desktop/layout.tsx',
];
it.each(desktopRoutes)('should have file: %s', (route) => {
const filePath = resolve(appRootDir, route);
expect(fs.existsSync(filePath)).toBe(true);
});
});