Files
hanzo.ai/e2e/unit/counts.spec.ts
Cursor Agentandz c3af929c56 site: one API, one account, better cheaper faster
The bar is Models, Dev, Platform, Pricing, Docs, Enterprise, Log in, and Get API key. The homepage is seven sections. Launch pages stay in the tree and drop out of the index through lib/launch.ts. /platform forwards to /cloud. Model and repository floors come from the snapshots the build already keeps.

Co-authored-by: z <[email protected]>
2026-10-26 21:53:40 +00:00

14 lines
726 B
TypeScript

import { readFileSync } from 'node:fs'
import { test, expect } from '@playwright/test'
import { MODEL_COUNT, MODEL_FLOOR, REPO_COUNT, REPO_FLOOR } from '../../lib/counts'
/** The constants in lib/counts.ts are the snapshots, not a second opinion. */
test('model and repository counts are the committed snapshots', () => {
const served = JSON.parse(readFileSync('lib/data/served.json', 'utf8')) as { served: unknown[] }
const oss = JSON.parse(readFileSync('lib/data/oss.json', 'utf8')) as { repos: number }
expect(served.served.length).toBe(MODEL_COUNT)
expect(Math.floor(MODEL_COUNT / 100) * 100).toBe(MODEL_FLOOR)
expect(oss.repos).toBe(REPO_COUNT)
expect(Math.floor(REPO_COUNT / 100) * 100).toBe(REPO_FLOOR)
})