Migrate tests to Vitest
This commit is contained in:
1 parent
cbe4d79b3c
commit
c0ea3aefbe
15 files changed
+1393
-1839
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { expect, test } from 'vitest';
|
||||
import { render, screen } from '@/test/render';
|
||||
import { Empty } from './Empty';
|
||||
|
||||
test('renders the default empty state message', () => {
|
||||
render(<Empty />);
|
||||
|
||||
expect(screen.getByText('No data available.')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('renders a custom empty state message', () => {
|
||||
render(<Empty message="Nothing matched the current filters." />);
|
||||
|
||||
expect(screen.getByText('Nothing matched the current filters.')).toBeInTheDocument();
|
||||
});
|
||||
Reference in new issue
Block a user