diff --git a/packages/midnight-smoker/src/pm/npm9.ts b/packages/midnight-smoker/src/pm/npm9.ts index ee4606ce1..e4d872c52 100644 --- a/packages/midnight-smoker/src/pm/npm9.ts +++ b/packages/midnight-smoker/src/pm/npm9.ts @@ -56,7 +56,7 @@ export class Npm9 extends Npm7 implements PackageManager { } public static load(executor: CorepackExecutor, opts?: PackageManagerOpts) { - return new Npm7(executor, opts); + return new Npm9(executor, opts); } public async install(manifest: InstallManifest): Promise { diff --git a/packages/midnight-smoker/test/unit/pm/npm7.spec.ts b/packages/midnight-smoker/test/unit/pm/npm7.spec.ts index 66f2de15c..ca3ccdc82 100644 --- a/packages/midnight-smoker/test/unit/pm/npm7.spec.ts +++ b/packages/midnight-smoker/test/unit/pm/npm7.spec.ts @@ -300,6 +300,7 @@ describe('midnight-smoker', function () { expect(execStub, 'to have a call satisfying', [ [ 'install', + '--no-audit', '--no-package-lock', '--global-style', ...manifest.packedPkgs.map((pkg) => pkg.tarballFilepath), diff --git a/packages/midnight-smoker/test/unit/pm/npm9.spec.ts b/packages/midnight-smoker/test/unit/pm/npm9.spec.ts index 831e3031a..d10fb01f4 100644 --- a/packages/midnight-smoker/test/unit/pm/npm9.spec.ts +++ b/packages/midnight-smoker/test/unit/pm/npm9.spec.ts @@ -84,6 +84,7 @@ describe('midnight-smoker', function () { expect(execStub, 'to have a call satisfying', [ [ 'install', + '--no-audit', '--no-package-lock', '--install-strategy=shallow', ...manifest.packedPkgs.map((pkg) => pkg.tarballFilepath),