test: make working-directory tests pass on Windows

Drive-qualify resolved paths in fixtures and assert against normalized cwds
so route tests match the values normalizeRequestCwd produces. Skip the
POSIX-shell TerminalService suite on native Windows, where the terminal
feature is unsupported.
This commit is contained in:
Federico Jaramillo Martinez
2026-06-13 11:48:06 +02:00
parent ef03439b5c
commit 3d68c78c83
4 changed files with 21 additions and 8 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
import { describe, expect, it } from "vitest";
import { TerminalService } from "./terminalService";
describe("TerminalService command runs", () => {
// TerminalService spawns a POSIX shell (/bin/bash with -lc and commands like
// printf/true/exit). The terminal feature is not supported on native Windows,
// so these tests are skipped there rather than asserting Unix shell behavior.
describe.skipIf(process.platform === "win32")("TerminalService command runs", () => {
it("closes all terminal records for a cwd", () => {
const service = new TerminalService();
try {