mirror of
https://github.com/home-assistant/frontend.git
synced 2026-07-03 12:35:40 +01:00
133a9171bc
* 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
9 lines
376 B
TypeScript
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;
|