: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
import { validateSavedQueryName } from './savedQueryNameValidation'
describe('saved query namespace validation', () => {
test('rejects the namespace container as a model name', () => {
expect(validateSavedQueryName('models')).toBe(
'The models namespace needs a model name, for example models.revenue.'
)
})
test.each(['models.revenue', 'models.marts.revenue', 'revenue', 'models_v2'])('accepts %s', (name) => {
expect(validateSavedQueryName(name)).toBeUndefined()
})
})