test: fix archiver

Signed-off-by: Filip Skokan <[email protected]>
This commit is contained in:
Filip Skokan
2026-05-23 09:34:34 +02:00
parent cfd90ac200
commit af7cd0e409
+2 -2
View File
@@ -3,7 +3,7 @@ import * as fs from 'node:fs'
import * as readline from 'node:readline'
import { parseArgs } from 'node:util'
import archiver from 'archiver'
import { ZipArchive } from 'archiver'
const {
values: { submission },
@@ -76,7 +76,7 @@ rl.on('line', (line) => {
await events.once(rl, 'close')
if (submission) {
const archive = archiver('zip')
const archive = new ZipArchive()
const zip = fs.createWriteStream(`${planId}-client-data.zip`)
archive.pipe(zip)
for (const file of files) {