fix(test): replace Unix-only assumptions with cross-platform alternatives (#14906)

This commit is contained in:
Luke Parker
2026-02-24 23:03:18 +10:00
committed by GitHub
parent 06f25c78f6
commit 3d379c20c4
3 changed files with 19 additions and 10 deletions

View File

@@ -65,7 +65,7 @@ describe("tool.assertExternalDirectory", () => {
const directory = "/tmp/project"
const target = "/tmp/outside/file.txt"
const expected = path.join(path.dirname(target), "*")
const expected = path.join(path.dirname(target), "*").replaceAll("\\", "/")
await Instance.provide({
directory,
@@ -91,7 +91,7 @@ describe("tool.assertExternalDirectory", () => {
const directory = "/tmp/project"
const target = "/tmp/outside"
const expected = path.join(target, "*")
const expected = path.join(target, "*").replaceAll("\\", "/")
await Instance.provide({
directory,