make static
This commit is contained in:
+6
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user