test: use portable file reads under Vitest

This commit is contained in:
2026-08-29 06:18:59 +00:00 Unverified
parent efb61521ca
commit 18a1e347f9
2 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
import { readFile } from "node:fs/promises";
import { describe, expect, it } from "vitest";
async function repositoryFile(path: string): Promise<string> {
return Bun.file(new URL(`../${path}`, import.meta.url)).text();
return readFile(new URL(`../${path}`, import.meta.url), "utf8");
}
describe("production deployment contract", () => {