Skip to content

Commit

Permalink
fix(midnight-smoker): fix npm9 load() function
Browse files Browse the repository at this point in the history
Closes #401
  • Loading branch information
boneskull committed Oct 11, 2023
1 parent 03ee59b commit 9369577
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/midnight-smoker/src/pm/npm9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<InstallResult> {
Expand Down
1 change: 1 addition & 0 deletions packages/midnight-smoker/test/unit/pm/npm7.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 1 addition & 0 deletions packages/midnight-smoker/test/unit/pm/npm9.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 9369577

Please sign in to comment.