Fixed all tests
This commit is contained in:
@@ -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();
|
||||
});
|
||||
Reference in New Issue
Block a user