landing-family-performance.test.mjs
sha256:4215cecbbabf5591b1ff69053cc938b4b6c800f0d487be40618c1d4254d8b67b
security: npm audit fix pre-bridge 2026-09-05
Human
3 days ago
| 1 | import { describe, it } from 'node:test'; |
| 2 | import assert from 'node:assert'; |
| 3 | import { readFileSync } from 'node:fs'; |
| 4 | import { fileURLToPath } from 'node:url'; |
| 5 | import { dirname, join } from 'node:path'; |
| 6 | |
| 7 | const root = join(dirname(fileURLToPath(import.meta.url)), '..'); |
| 8 | const indexPath = join(root, 'web', 'index.html'); |
| 9 | |
| 10 | describe('landing family scan (performance)', () => { |
| 11 | it('reads and scans family markers in under 50ms', () => { |
| 12 | const t0 = performance.now(); |
| 13 | const html = readFileSync(indexPath, 'utf8'); |
| 14 | const ok = |
| 15 | html.includes('Ourware') && |
| 16 | html.includes('https://ourware.org') && |
| 17 | html.includes('scool.ing') && |
| 18 | html.includes('Overseer Kit') && |
| 19 | !/agentception/i.test(html) && |
| 20 | !/parentier/i.test(html); |
| 21 | const elapsed = performance.now() - t0; |
| 22 | assert.equal(ok, true); |
| 23 | assert.ok(elapsed < 50, `scan took ${elapsed}ms`); |
| 24 | }); |
| 25 | }); |
File History
2 commits
sha256:4215cecbbabf5591b1ff69053cc938b4b6c800f0d487be40618c1d4254d8b67b
security: npm audit fix pre-bridge 2026-09-05
Human
3 days ago
sha256:9eaa2a7ec9aaf5866cd03d0deadf843cca97778299d1857b5452f71d92a1880a
feat(f24): flip DOCS_NOTION_HUB_KEY_AUTHORIZED=true (Tier 3)
Human
minor
⚠
17 days ago