test: use portable file reads under Vitest
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user