mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 19:43:02 +00:00
test: proper sanity check; exclude WasmTest from coverage (#8)
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import App from '~/App';
|
||||
import { renderWithProviders, screen } from '~/test-utils/test-helper';
|
||||
|
||||
test('hello', () => {
|
||||
render(<div>hello</div>);
|
||||
expect(screen.getByText('hello')).toBeInTheDocument();
|
||||
test('should be able to render App', () => {
|
||||
renderWithProviders(<App />);
|
||||
|
||||
// Quick sanity check of known strings.
|
||||
expect(screen.getByText(/仅在浏览器内对文件进行解锁/i)).toBeInTheDocument();
|
||||
expect(screen.getByText(/UnlockMusic 团队/i)).toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user