Makelore 2.0 initial clean snapshot

This commit is contained in:
inman
2026-07-29 17:22:35 +08:00
commit b8ca3f8eea
694 changed files with 139782 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { render, screen } from '@testing-library/react';
import { MemoryRouter, Route, Routes } from 'react-router-dom';
import { describe, expect, it } from 'vitest';
import { Subagents } from '@/pages/Subagents';
describe('Subagents retired route', () => {
it('redirects the old course path page to the opencode chat page', async () => {
render(
<MemoryRouter initialEntries={['/subagents']}>
<Routes>
<Route path="/subagents" element={<Subagents />} />
<Route path="/opencode-chat" element={<div data-testid="opencode-chat-page" />} />
</Routes>
</MemoryRouter>,
);
expect(await screen.findByTestId('opencode-chat-page')).toBeInTheDocument();
expect(screen.queryByTestId('subagents-page')).not.toBeInTheDocument();
});
});