Skip to content

: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.

chore(activity-log): mount description models in tests (#107852)

Paul D'Ambra96eb6b41dc54
diff --git a/frontend/src/lib/components/ActivityLog/activityLogLogic.test.setup.ts b/frontend/src/lib/components/ActivityLog/activityLogLogic.test.setup.ts
index dcdd934e92b4..b41a93a39510 100644
--- a/frontend/src/lib/components/ActivityLog/activityLogLogic.test.setup.ts
+++ b/frontend/src/lib/components/ActivityLog/activityLogLogic.test.setup.ts
@@ -4,6 +4,8 @@ import { activityLogLogic } from 'lib/components/ActivityLog/activityLogLogic'
import { ActivityChange, ActivityLogItem, PersonMerge, Trigger } from 'lib/components/ActivityLog/humanizeActivity'
import { useMocks } from '~/mocks/jest'
+import { cohortsModel } from '~/models/cohortsModel'
+import { propertyDefinitionsModel } from '~/models/propertyDefinitionsModel'
import { initKeaTests } from '~/test/init'
import { ActivityScope } from '~/types'
@@ -57,6 +59,8 @@ async function testSetup(
},
})
initKeaTests()
+ cohortsModel.mount()
+ propertyDefinitionsModel.mount()
const logic = activityLogLogic({ scope, id: 7 })
logic.mount()