Skip to content

Commit

Permalink
chore: fix archiver import
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Nov 8, 2023
1 parent 62d494e commit 956a625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/nuts/mdapi.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 956a625

Please sign in to comment.