MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / expectedPath

Function expectedPath

apps/cli/src/lib/utils/__tests__/path.test.ts:4–12  ·  view source on GitHub ↗
(...segments: string[])

Source from the content-addressed store, hash-verified

2
3// Helper to create platform-specific expected paths
4const expectedPath = (...segments: string[]) => {
5 // On Windows, path.normalize converts forward slashes to backslashes
6 // and paths like /Users become \Users (without a drive letter)
7 if (process.platform === "win32") {
8 return "\\" + segments.join("\\")
9 }
10
11 return "/" + segments.join("/")
12}
13
14describe("normalizePath", () => {
15 it("should remove trailing slashes", () => {

Callers 1

path.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected