feat(admin): scaffold Vite+React admin workspace

This commit is contained in:
Bas van Rossem
2026-06-17 18:56:28 +02:00
parent 02b7522b87
commit 682a9dce44
17 changed files with 219 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { render, screen } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import App from './App';
function renderApp() {
const queryClient = new QueryClient({ defaultOptions: { queries: { retry: false } } });
return render(
<QueryClientProvider client={queryClient}>
<App />
</QueryClientProvider>
);
}
describe('App', () => {
it('renders the admin app name', () => {
renderApp();
expect(screen.getByText('SoleLog Admin')).toBeInTheDocument();
});
});