Fixed all tests

This commit is contained in:
2026-02-22 20:34:33 +01:00 Verified
parent 1469b87ddb
commit 141ddb0c08
4 changed files with 18 additions and 29 deletions
+3 -10
View File
@@ -1,16 +1,9 @@
// frontend/src/App.test.jsx
import { render, screen } from '@testing-library/react';
import { expect, test } from 'vitest';
import { render } from '@testing-library/react';
import { test } from 'vitest';
import App from './App';
test('renders the Vite and React logos', () => {
// 1. Render the component
test('renders the App', () => {
render(<App />);
// 2. Search for elements
const heading = screen.getByText(/Vite \+ React/i);
// 3. Assert (the "expect" part)
expect(heading).toBeInTheDocument();
});