Files
cve-dashboard/frontend/src/App.test.js

15 lines
608 B
JavaScript
Raw Normal View History

/**
* Smoke test verifies the test runner works and React renders.
* The full App component imports ESM-only packages (react-markdown, mermaid)
* that require special Jest transforms. Component-level tests should test
* individual components in isolation rather than mounting the entire App.
*/
import React from 'react';
import { render } from '@testing-library/react';
// Minimal component render to verify the test environment works
test('React renders without crashing', () => {
const { container } = render(<div data-testid="smoke">ok</div>);
expect(container.textContent).toBe('ok');
});