diff --git a/test/mock/client/index.ts b/test/mock/client/index.ts index fcf8b42b54..046c341a7e 100644 --- a/test/mock/client/index.ts +++ b/test/mock/client/index.ts @@ -9,7 +9,9 @@ import * as JSZip from 'jszip'; export async function createMockZip(entries: string[]): Promise { const zip = JSZip(); for (const entry of entries) { - zip.file(entry, ''); + // Ensure only posix paths are added to zip files + const relPosixPath = entry.replace(/\\/g, '/'); + zip.file(relPosixPath, ''); } return zip.generateAsync({ type: 'nodebuffer',