mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
test: setup jest and everything
This commit is contained in:
6
src/__test__/hello.test.tsx
Normal file
6
src/__test__/hello.test.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
|
||||
test('hello', () => {
|
||||
render(<div>hello</div>);
|
||||
expect(screen.getByText('hello') as any).toBeInTheDocument();
|
||||
});
|
||||
1
src/test-utils/setup-jest.ts
Normal file
1
src/test-utils/setup-jest.ts
Normal file
@@ -0,0 +1 @@
|
||||
import '@testing-library/jest-dom';
|
||||
Reference in New Issue
Block a user