From aa42fdaa68794294e863d5ded1f712558a4a9c58 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Mon, 25 Mar 2024 23:00:39 +0000 Subject: [PATCH] a little even more lesserer --- .../InsightsTable/insightsTableDataLogic.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/scenes/insights/views/InsightsTable/insightsTableDataLogic.test.ts b/frontend/src/scenes/insights/views/InsightsTable/insightsTableDataLogic.test.ts index 30ddcd27e2a4a..d5c7880728aca 100644 --- a/frontend/src/scenes/insights/views/InsightsTable/insightsTableDataLogic.test.ts +++ b/frontend/src/scenes/insights/views/InsightsTable/insightsTableDataLogic.test.ts @@ -1,6 +1,7 @@ import { expectLogic } from 'kea-test-utils' import { insightVizDataLogic } from 'scenes/insights/insightVizDataLogic' +import { useMocks } from '~/mocks/jest' import { NodeKind, TrendsQuery } from '~/queries/schema' import { initKeaTests } from '~/test/init' import { BaseMathType, ChartDisplayType, InsightShortId, PropertyMathType } from '~/types' @@ -14,6 +15,17 @@ describe('insightsTableDataLogic', () => { const props = { dashboardItemId: Insight123 } beforeEach(() => { + useMocks({ + post: { + '/api/projects/:team/query': [ + 200, + { + results: [], + }, + ], + }, + }) + initKeaTests() logic = insightsTableDataLogic(props) logic.mount()