1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-07-03 04:25:44 +01:00
Files
frontend/test/vitest.bench.config.ts
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

22 lines
614 B
TypeScript

import { defineConfig } from "vitest/config";
import tsconfigPaths from "vite-tsconfig-paths";
// Benchmark configuration for chart data processing transforms.
// Runs in a plain node environment (no jsdom) and sequentially, so timings
// are as stable as possible. See test/benchmarks/README.md.
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
environment: "node",
env: {
TZ: "Etc/UTC",
IS_TEST: "true",
},
setupFiles: ["./test/benchmarks/setup.ts"],
fileParallelism: false,
benchmark: {
include: ["test/benchmarks/**/*.bench.ts"],
},
},
});