Skip to content

Commit 3f7526c

Browse files
committed
test: fix bin tests on windows (slashes)
1 parent 2b03cca commit 3f7526c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const mockForegroundChild = {
2929
if (options !== undefined) {
3030
throw new Error('should not pass in spawn opts')
3131
}
32-
foregroundChildCalls.push([cmd, args])
32+
foregroundChildCalls.push([cmd, args.map(a => a.replace(/\\/g, '/'))])
3333
},
3434
}
3535
t.beforeEach(() => (foregroundChildCalls.length = 0))

0 commit comments

Comments
 (0)