From 51584886b3afc776d045e09b86bbc84ea9bdf847 Mon Sep 17 00:00:00 2001 From: gilles Date: Sun, 13 Sep 2026 14:53:01 +0200 Subject: [PATCH] test(app): add test for app --- src/App.test.tsx | 5 ++--- src/App.tsx | 6 +----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/App.test.tsx b/src/App.test.tsx index 582241b..7e5eedb 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -1,10 +1,9 @@ -import { describe, expect, it } from 'vitest' import { render, screen } from '@testing-library/react' import App from './App' describe('App', () => { - it('affiche le contenu minimal', () => { + it('renders without crashing', () => { render() - expect(screen.getByRole('heading', { level: 1, name: 'Hello world' })).toBeInTheDocument() + expect(screen.getByRole('main')).toBeInTheDocument() }) }) diff --git a/src/App.tsx b/src/App.tsx index 4ef2f09..35e11ab 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,9 +1,5 @@ function App() { - return ( -
-

Hello world

-
- ) + return
} export default App