1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-07-02 20:15:40 +01:00
Files
Petar Petrov 133a9171bc Add chart data processing optimization harness (#52550)
* Add deterministic fixtures and characterization tests for chart data processing

* Extract statistics chart data processing into a pure function

* Extract state history line chart data processing into a pure function

* Add benchmark suite for chart data processing

* Add chart data optimization playbook

* Point agent instructions at the chart optimization playbook
2026-06-15 12:53:01 +02:00

9 lines
376 B
TypeScript

// Bench setup for the node environment. Unlike test/setup.ts this must not
// assign global.navigator — modern node exposes it as a getter-only property.
global.window = (global.window ?? {}) as any;
// src/data/external.ts reads location.search at module load
global.location = (global.location ?? { search: "" }) as any;
global.__DEMO__ = false;
global.__DEV__ = false;