- React-based web application for testing JMESPath expressions - macOS-first containerization with Apple container command - Bootstrap UI with real-time evaluation - GitHub Actions CI/CD pipeline - Docker fallback support - Comprehensive documentation and development scripts
22 lines
752 B
JavaScript
22 lines
752 B
JavaScript
import { render, screen } from '@testing-library/react';
|
|
import App from './App';
|
|
|
|
test('renders JMESPath Testing Tool title', () => {
|
|
render(<App />);
|
|
const titleElement = screen.getByText(/JMESPath Testing Tool/i);
|
|
expect(titleElement).toBeInTheDocument();
|
|
});
|
|
|
|
test('renders input areas', () => {
|
|
render(<App />);
|
|
const jmespathInput = screen.getByPlaceholderText(/Enter JMESPath expression/i);
|
|
const jsonInput = screen.getByPlaceholderText(/Enter JSON data here/i);
|
|
expect(jmespathInput).toBeInTheDocument();
|
|
expect(jsonInput).toBeInTheDocument();
|
|
});
|
|
|
|
test('renders result area', () => {
|
|
render(<App />);
|
|
const resultArea = screen.getByPlaceholderText(/Results will appear here/i);
|
|
expect(resultArea).toBeInTheDocument();
|
|
}); |