➕ chore(deps-dev): add dependency @testing-library/jest-dom

This commit is contained in:
2024-01-20 09:45:34 +01:00
parent 8401115e37
commit f81de62724
3 changed files with 126 additions and 3 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ describe('Renders main page correctly', async () => {
const h1 = await screen.queryByText('Vite + React');
// Post Expectations
expect(h1).not.toBeNull();
expect(h1).toBeInTheDocument();
});
/**
@@ -36,7 +36,7 @@ describe('Renders main page correctly', async () => {
const button = await screen.queryByText('count is 0');
// Expectations
expect(button).not.toBeNull();
expect(button).toBeInTheDocument();
});
/**
@@ -49,7 +49,7 @@ describe('Renders main page correctly', async () => {
const button = await screen.queryByText('count is 0');
// Pre Expectations
expect(button).not.toBeNull();
expect(button).toBeInTheDocument();
// Actions
await user.click(button as HTMLElement);