test: setup jest and everything

This commit is contained in:
鲁树人
2023-05-15 21:32:48 +01:00
parent 6c5b8c9d55
commit 7d27a5fc96
8 changed files with 3138 additions and 1085 deletions

View 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();
});

View File

@@ -0,0 +1 @@
import '@testing-library/jest-dom';