: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
const kea = require('../../node_modules/kea')
const { testListenerDefinitions, testListeners } = require('./keaTestListeners')
function wrapLogicInput(input) {
if (!input || typeof input !== 'object' || input.listeners === undefined) {
return input
}
return { ...input, listeners: testListenerDefinitions(input.listeners) }
}
function testKea(input) {
return kea.kea(Array.isArray(input) ? input.map(wrapLogicInput) : wrapLogicInput(input))
}
/** @type {typeof kea & { __esModule: true }} */
module.exports = { ...kea, __esModule: true, kea: testKea, listeners: testListeners(kea.listeners) }