We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b41af2 commit 9f3c0c1Copy full SHA for 9f3c0c1
test/mock/client/index.ts
@@ -9,7 +9,9 @@ import * as JSZip from 'jszip';
9
export async function createMockZip(entries: string[]): Promise<Buffer> {
10
const zip = JSZip();
11
for (const entry of entries) {
12
- zip.file(entry, '');
+ // Ensure only posix paths are added to zip files
13
+ const relPosixPath = entry.replace(/\\/g, '/');
14
+ zip.file(relPosixPath, '');
15
}
16
return zip.generateAsync({
17
type: 'nodebuffer',
0 commit comments