From 956a62548dd9f4b811c62085ac4c29d0bff47f01 Mon Sep 17 00:00:00 2001 From: Willie Ruemmele Date: Wed, 8 Nov 2023 14:26:24 -0400 Subject: [PATCH] chore: fix archiver import --- test/nuts/mdapi.nut.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/nuts/mdapi.nut.ts b/test/nuts/mdapi.nut.ts index 7055c2444..d8c1272b6 100644 --- a/test/nuts/mdapi.nut.ts +++ b/test/nuts/mdapi.nut.ts @@ -10,7 +10,7 @@ import path from 'node:path'; import { expect } from 'chai'; import { execCmd, ExecCmdResult, TestSession } from '@salesforce/cli-plugins-testkit'; import { RequestStatus } from '@salesforce/source-deploy-retrieve'; -import { create as createArchive } from 'archiver'; +import { create } from 'archiver'; import { RetrieveCommandAsyncResult, RetrieveCommandResult, @@ -350,7 +350,7 @@ describe('mdapi NUTs', () => { // make a mdapi directory from the project execCmd(`force:source:convert -p force-app --outputdir ${mdapiOut}`, { ensureExitCode: 0, cli: 'sf' }); // make a zip from that - const zip = createArchive('zip', { zlib: { level: 9 } }); + const zip = create('zip', { zlib: { level: 9 } }); const output = fs.createWriteStream(path.join(session.project.dir, `${mdapiOut}.zip`)); zip.pipe(output); // anywhere not at the root level is fine