Skip to content

Commit d3b3f15

Browse files
cliffhallclaude
andcommitted
test(filesystem): expect ENOENT for a file in the way on Windows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent db2a4fc commit d3b3f15

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/filesystem/__tests__/missing-parent-error.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ describe("the pinned write's error for a directory it cannot enter", () => {
138138
).rejects.toThrow(
139139
expect.objectContaining({
140140
message: `Parent directory does not exist: ${parent}`,
141-
code: "ENOTDIR",
141+
// Windows reports a file in the way of chdir as ENOENT.
142+
code: process.platform === "win32" ? "ENOENT" : "ENOTDIR",
142143
}),
143144
);
144145
});

0 commit comments

Comments
 (0)