diff --git a/src/pages/Dashboard/Dashboard.spec.tsx b/src/pages/Dashboard/Dashboard.spec.tsx new file mode 100644 index 0000000..0efc3b2 --- /dev/null +++ b/src/pages/Dashboard/Dashboard.spec.tsx @@ -0,0 +1,9 @@ +import React from 'react'; +import { render, screen } from '@testing-library/react'; +import { Dashboard } from './Dashboard'; + +test('renders Dashboard text', () => { + render(); + const dashboardElement = screen.getByText(/dashboard/i); + expect(dashboardElement).toBeInTheDocument(); +});