mirror of
https://github.com/home-assistant/frontend.git
synced 2026-07-03 04:25:44 +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
22 lines
614 B
TypeScript
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"],
|
|
},
|
|
},
|
|
});
|