/usr/share/grafana/public/app/plugins/datasource/azuremonitor/components/ConfigEditor
import { render, screen } from '@testing-library/react'; import { createMockInstanceSetttings } from '../../mocks/instanceSettings'; import { BasicLogsToggle, Props } from './BasicLogsToggle'; const mockInstanceSettings = createMockInstanceSetttings(); const defaultProps: Props = { options: mockInstanceSettings.jsonData, onBasicLogsEnabledChange: jest.fn(), }; describe('BasicLogsToggle', () => { it('should render component', () => { render(<BasicLogsToggle {...defaultProps} />); expect(screen.getByText('Enable Basic Logs')).toBeInTheDocument(); }); });
.
Edit
..
Edit
AppRegistrationCredentials.tsx
Edit
AzureCredentialsForm.test.tsx
Edit
AzureCredentialsForm.tsx
Edit
BasicLogsToggle.test.tsx
Edit
BasicLogsToggle.tsx
Edit
ConfigEditor.test.tsx
Edit
ConfigEditor.tsx
Edit
CurrentUserFallbackCredentials.test.tsx
Edit
CurrentUserFallbackCredentials.tsx
Edit
DefaultSubscription.test.tsx
Edit
DefaultSubscription.tsx
Edit
MonitorConfig.test.tsx
Edit
MonitorConfig.tsx
Edit