Fixed tests

This commit is contained in:
2026-02-12 01:27:33 +01:00 Verified
parent 21a7e64d10
commit 8ee8b76cb2
8 changed files with 1210 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
// frontend/src/App.test.jsx
import { render, screen } from '@testing-library/react';
import { expect, test } from 'vitest';
import App from './App';
test('renders the Vite and React logos', () => {
// 1. Render the component
render(<App />);
// 2. Search for elements
const heading = screen.getByText(/Vite \+ React/i);
// 3. Assert (the "expect" part)
expect(heading).toBeInTheDocument();
});