➕ chore(deps-dev): add dependency @testing-library/react
This commit is contained in:
+10
-1
@@ -1,9 +1,18 @@
|
||||
// Imports
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
|
||||
// To Test
|
||||
import App from './App';
|
||||
|
||||
// Tests
|
||||
describe('Renders main page correctly', async () => {
|
||||
it('Should render the page correctly', async () => {
|
||||
expect(true).toBeTruthy();
|
||||
// Setup
|
||||
render(<App />);
|
||||
const h1 = await screen.queryByText('Vite + React');
|
||||
|
||||
// Expectations
|
||||
expect(h1).not.toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user