'use strict'; /** * openvibe-shared/perf-budget — size budgets for a page's first load (roadmap WS-T task 1), measured * from what the running server actually answers: no browser, deterministic, cheap enough for `npm test`. Core Web Vitals are opt-in: `browser` adds a real-Chrome pass. * * const { measure, check, format } = require('openvibe-shared/perf-budget'); * const m = await measure({ base: 'http://127.0.0.1:4000', path: '/' }); * const over = check(m, { htmlBrotliKB: 30, jsFiles: 12, jsBrotliKB: 90, cssBrotliKB: 40 }); * assert.deepStrictEqual(over, [], format(m, over)); * * measure({ base, path = '/', fetch, headers, browser }) fetches the page, then every same-origin script * (