Skip to content

Commit

Permalink
remove default tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasinfor committed Nov 4, 2024
1 parent e540ffc commit 1665983
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/App.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import {fireEvent, render, screen} from '@testing-library/react';
import App from './App';

describe('counter tests', () => {

test("Counter should be 0 at the start", () => {
render(<App />);
expect(screen.getByText('count is: 0')).toBeDefined();
});

test("Counter should increment by one when clicked", async () => {
render(<App />);
const counter = screen.getByRole('button');
fireEvent.click(counter);
expect(await screen.getByText('count is: 1')).toBeDefined();
});
// test("Counter should be 0 at the start", () => {
// render(<App />);
// expect(screen.getByText('count is: 0')).toBeDefined();
// });

// test("Counter should increment by one when clicked", async () => {
// render(<App />);
// const counter = screen.getByRole('button');
// fireEvent.click(counter);
// expect(await screen.getByText('count is: 1')).toBeDefined();
// });

});

0 comments on commit 1665983

Please sign in to comment.