Skip to content

Commit e66c91e

Browse files
committed
fix(test): support Windows paths in spawn working directory test
Update regex to match Windows Git Bash paths like /d/tmp in addition to Unix paths /tmp and /private/tmp (macOS).
1 parent 76b5db8 commit e66c91e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/spawn.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ describe('spawn integration', () => {
5555
cwd: '/tmp',
5656
})
5757
expect(result.code).toBe(0)
58-
// macOS uses /private/tmp symlink
58+
// macOS uses /private/tmp symlink, Windows Git Bash uses /d/tmp or similar
5959
expect(result.stdout.toString().trim()).toMatch(
60-
/^(\/tmp|\/private\/tmp)$/,
60+
/^(\/tmp|\/private\/tmp|\/[a-z]\/tmp)$/,
6161
)
6262
})
6363

0 commit comments

Comments
 (0)