fix: tracking negative values

This commit is contained in:
John Yeo
2025-11-06 18:25:57 +00:00
parent 6ce72bf501
commit da76ee8e5f
8 changed files with 18 additions and 254 deletions

View File

@@ -2,10 +2,14 @@
import { spawn } from "bun";
import chalk from "chalk";
import dotenv from "dotenv";
import { readdir } from "fs/promises";
import pLimit from "p-limit";
import { basename, resolve } from "path";
// Load environment variables from server/.env
dotenv.config({ path: resolve(process.cwd(), "server", ".env") });
interface TestResult {
file: string;
status: "pending" | "running" | "passed" | "failed";
@@ -342,6 +346,7 @@ class TestRunner {
const proc = spawn(["bun", "test", "--timeout", "0", file], {
stdout: "pipe",
stderr: "pipe",
env: { ...process.env },
});
let output = "";