make static

This commit is contained in:
2026-09-17 01:29:20 -04:00
parent 3d4d75fdfb
commit 7a0101bcae
11 changed files with 280 additions and 26 deletions
+6 -1
View File
@@ -1,9 +1,14 @@
import { describe, it, expect } from "vitest";
import rawConfig from "./config.json";
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { loadConfig } from "./configLoader";
import { estimate } from "./engine";
import { parseISODate } from "./dates";
// Read the actual shipped config that gets served at runtime.
const configPath = fileURLToPath(new URL("../public/config.json", import.meta.url));
const rawConfig = JSON.parse(readFileSync(configPath, "utf-8"));
describe("real config sanity", () => {
const result = loadConfig(rawConfig);