You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All test fixtures are synthetic. Dependabot updates @paulirish/trace_engine every day, so CI can pass when the engine output changes in a way the synthetic fixtures do not cover.
Proposal
Add a small real trace recorded in Chrome, with a page load and an interaction, as .json.gz. It must not contain private URLs or data.
Add snapshot tests with the node:test snapshot support (t.assert.snapshot) for overview, insights, tasks, network, shifts, interactions and report.
When a Dependabot update changes the output, the snapshot diff shows the change, and the PR updates the snapshots on purpose.
Open questions
What is the size limit for a fixture in the repo? A load of a small test page should be under 1 MB compressed.
Which page do we record? A static page in the repo would let anyone record the trace again.
Activity