Skip to content

Commit df97126

Browse files
committed
fix tests
1 parent 9ac97d3 commit df97126

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

static/app/components/charts/chartWidgetLoader-unmocked-imports.spec.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,29 @@ jest.mock(
152152
})),
153153
})
154154
);
155+
jest.mock('sentry/views/insights/common/queries/useDiscover', () => ({
156+
useEAPSpans: jest.fn(() => ({
157+
data: [
158+
{
159+
'avg(span.duration)': 123,
160+
'sum(span.duration)': 456,
161+
'span.group': 'abc123',
162+
'span.description': 'span1',
163+
'sentry.normalized_description': 'span1',
164+
transaction: 'transaction_a',
165+
},
166+
],
167+
isPending: false,
168+
error: null,
169+
})),
170+
}));
171+
jest.mock('sentry/views/insights/common/queries/useTopNDiscoverSeries', () => ({
172+
useTopNSpanEAPSeries: jest.fn(() => ({
173+
data: [mockDiscoverSeries('transaction_a,abc123')],
174+
isPending: false,
175+
error: null,
176+
})),
177+
}));
155178
jest.mock('sentry/views/insights/common/queries/useDiscoverSeries', () => ({
156179
useEAPSeries: jest.fn(() => ({
157180
data: {

0 commit comments

Comments
 (0)