Files
2024-10-02 08:48:44 -05:00

45 lines
1.1 KiB
JavaScript

import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { Counter } from './counter';
import '@testing-library/jest-dom/vitest';
describe.todo('Counter ', () => {
beforeEach(() => {
render(<Counter />);
});
it('renders with an initial count of 0');
it('disables the "Decrement" and "Reset" buttons when the count is 0');
it.todo('displays "days" when the count is 0', () => {});
it.todo(
'increments the count when the "Increment" button is clicked',
async () => {},
);
it.todo('displays "day" when the count is 1', async () => {});
it.todo(
'decrements the count when the "Decrement" button is clicked',
async () => {},
);
it.todo('does not allow decrementing below 0', async () => {});
it.todo(
'resets the count when the "Reset" button is clicked',
async () => {},
);
it.todo(
'disables the "Decrement" and "Reset" buttons when the count is 0',
() => {},
);
it.todo('updates the document title based on the count', async () => {});
});