:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(insights): init kea in compareTopLevelSections tests (#112767)
Paul D'Ambra21d2c4ac879e
diff --git a/frontend/src/scenes/insights/utils.test.ts b/frontend/src/scenes/insights/utils.test.tsindex b6c773a768eb..0452d7fa4c9d 100644--- a/frontend/src/scenes/insights/utils.test.ts+++ b/frontend/src/scenes/insights/utils.test.ts@@ -21,6 +21,7 @@ import {NodeKind,} from '~/queries/schema/schema-general'import { isEventsNode } from '~/queries/utils'+import { initKeaTests } from '~/test/init'import { BaseMathType, CompareLabelType, Entity, EntityFilter, FilterType, InsightType, TeamType } from '~/types'import { IndexedTrendResult } from 'products/product_analytics/frontend/insights/trends/types'@@ -704,6 +705,10 @@ describe('getTrendDatasetKey()', () => {})describe('compareTopLevelSections()', () => {+ beforeEach(() => {+ initKeaTests()+ })+it('compares top-level sections', () => {const obj1: InsightQueryNode = {kind: NodeKind.TrendsQuery,