Skip to content

Commit 286e7c2

Browse files
Format bootstrap test ENXIO fixture match
- Wrap the `openSync` ENXIO guard across multiple lines - Keep the Linux fd failure test stable and readable
1 parent 2be026c commit 286e7c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/server/src/bootstrap.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ vi.mock("node:fs", async (importOriginal) => {
2121
...actual,
2222
openSync: (...args: Parameters<typeof actual.openSync>) => {
2323
const [filePath, flags] = args;
24-
if (typeof filePath === "string" && filePath === openSyncInterceptor.failPath && flags === "r") {
24+
if (
25+
typeof filePath === "string" &&
26+
filePath === openSyncInterceptor.failPath &&
27+
flags === "r"
28+
) {
2529
const error = new Error("no such device or address");
2630
Object.assign(error, { code: "ENXIO" });
2731
throw error;

0 commit comments

Comments
 (0)