nitro/apps/frontend/src/app/app.spec.tsx

16 lines
396 B
TypeScript

import { render } from '@testing-library/react';
import App from './app';
describe('App', () => {
it('should render successfully', () => {
const { baseElement } = render(<App />);
expect(baseElement).toBeTruthy();
});
it('should have a greeting as the title', () => {
const { getByText } = render(<App />);
expect(getByText(/Welcome frontend/gi)).toBeTruthy();
});
});