Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

test: normalize Windows working directory aliases

Tw9309bc28f234c5
diff --git a/tests/unit/shell.test.ts b/tests/unit/shell.test.ts
index 01cbc1fc..fd559873 100644
--- a/tests/unit/shell.test.ts
+++ b/tests/unit/shell.test.ts
@@ -56,6 +56,8 @@ describe('structured process execution', () => {
);
const result = JSON.parse(await fs.readFile(resultPath, 'utf8'));
+ // Windows may expose the same working directory through its 8.3 alias.
+ result.cwd = await fs.realpath(result.cwd);
expect(result).toEqual({
args: values,
cwd: await fs.realpath(cwd),