Pi Executable.Test
Path:
loom-builder-sol/src/pi-executable.test.tsRelative: src/pi-executable.test.tsSubproject: loom-builder-solCategory: dispatch-system-solLines: 33Bytes: 1,072Imports: 5Exports: 0has tests
Content Preview
- import { afterEach, describe, expect, test } from "bun:test";
- import { mkdtempSync, rmSync, writeFileSync } from "node:fs";
- import { tmpdir } from "node:os";
- import { join } from "node:path";
- import { preferredPiExecutable, validatePiExecutable } from "./pi-executable.js";
- let tmp = "";
- afterEach(() => {
- if (tmp !== "") rmSync(tmp, { recursive: true, force: true });
- tmp = "";
- });
- describe("pi executable validation", () => {
- test("rejects the Linux math utility path", () => {
- const c