mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Removes console output from InspectDataTab.test.tsx (#45374)
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
import React, { ComponentProps } from 'react';
|
import React, { ComponentProps } from 'react';
|
||||||
import { FieldType, DataFrame } from '@grafana/data';
|
import { DataFrame, FieldType } from '@grafana/data';
|
||||||
import { render, screen } from '@testing-library/react';
|
import { render, screen } from '@testing-library/react';
|
||||||
import userEvent from '@testing-library/user-event';
|
import userEvent from '@testing-library/user-event';
|
||||||
import { InspectDataTab } from './InspectDataTab';
|
import { InspectDataTab } from './InspectDataTab';
|
||||||
|
|
||||||
|
// the mock below gets rid of this warning from recompose:
|
||||||
|
// Warning: React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.
|
||||||
|
jest.mock('@jaegertracing/jaeger-ui-components', () => ({}));
|
||||||
|
|
||||||
const createProps = (propsOverride?: Partial<ComponentProps<typeof InspectDataTab>>) => {
|
const createProps = (propsOverride?: Partial<ComponentProps<typeof InspectDataTab>>) => {
|
||||||
const defaultProps = {
|
const defaultProps = {
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user