mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-18 23:02:11 +00:00
12 lines
325 B
TypeScript
12 lines
325 B
TypeScript
import React from 'react';
|
|
import { act } from 'react-dom/test-utils';
|
|
import { render } from '@testing-library/react';
|
|
import App from './App';
|
|
|
|
// eslint-disable-next-line jest/expect-expect
|
|
test('renders the app', async () => {
|
|
const promise = Promise.resolve();
|
|
render(<App />);
|
|
await act(() => promise);
|
|
});
|