diff --git a/src/App.test.tsx b/src/App.test.tsx index 9374f4b..75147fa 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -1,7 +1,8 @@ -import { render, screen } from '@testing-library/react' -import App from './App' +import { render, screen } from '@testing-library/react'; +import App from './App'; test('renders the get started heading', () => { - render() - expect(screen.getByText('Get started')).toBeInTheDocument() -}) + render(); + const headingElement = screen.getByText('Get started'); + expect(headingElement).toBeInTheDocument(); +}); diff --git a/src/App.tsx b/src/App.tsx index 0da7d98..211d20f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,43 +1,14 @@ -import { useState } from 'react' -import reactLogo from './assets/react.svg' -import viteLogo from './assets/vite.svg' -import heroImg from './assets/hero.png' -import './App.css' - -// Import the tic-tac-toe game component -import TicTacToe from './components/TicTacToe' +import React from 'react'; +import './App.css'; +import TicTacToe from './components/TicTacToe'; function App() { - const [count, setCount] = useState(0) - return ( - <> -
-
- - React logo - Vite logo -
-
-

Get started

-

- Edit src/App.tsx and save to test HMR -

-
- -
- -
- - {/* Add the tic-tac-toe game component */} +
+

Get started

- +
) } -export default App +export default App;