feat(windows): add first-class pwsh/powershell support (#16069)

This commit is contained in:
Luke Parker
2026-03-30 13:10:01 +10:00
committed by GitHub
parent 5d2dc8888c
commit b234370080
18 changed files with 1487 additions and 367 deletions

View File

@@ -555,4 +555,13 @@ describe("filesystem", () => {
expect(() => Filesystem.resolve(path.join(file, "child"))).toThrow()
})
})
describe("normalizePathPattern()", () => {
test("preserves drive root globs on Windows", async () => {
if (process.platform !== "win32") return
await using tmp = await tmpdir()
const root = path.parse(tmp.path).root
expect(Filesystem.normalizePathPattern(path.join(root, "*"))).toBe(path.join(root, "*"))
})
})
})