Skip to content

Commit 3f8486f

Browse files
committed
chore(test): Update expects with --force
1 parent 7822b08 commit 3f8486f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/unit/packageManager-spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ describe("Unit - Package Manager", () => {
296296
expect(Util.log).toHaveBeenCalledWith(`Installing npm packages`);
297297
expect(Util.log).toHaveBeenCalledWith(`Error installing npm packages.`);
298298
expect(Util.log).toHaveBeenCalledWith(`Example`);
299-
expect(Util.execSync).toHaveBeenCalledWith(`npm install --quiet`,
299+
expect(Util.execSync).toHaveBeenCalledWith(`npm install --force --quiet`,
300300
{ stdio: ["inherit"], killSignal: "SIGINT" });
301301
mockProjectConfig.packagesInstalled = true;
302302
expect(ProjectConfig.setConfig).toHaveBeenCalledWith(mockProjectConfig);
@@ -312,7 +312,7 @@ describe("Unit - Package Manager", () => {
312312
expect(Util.log).toHaveBeenCalledTimes(2);
313313
expect(Util.log).toHaveBeenCalledWith(`Installing npm packages`);
314314
expect(Util.log).toHaveBeenCalledWith(`Packages installed successfully`);
315-
expect(Util.execSync).toHaveBeenCalledWith(`npm install --quiet`,
315+
expect(Util.execSync).toHaveBeenCalledWith(`npm install --force --quiet`,
316316
{ stdio: ["inherit"], killSignal: "SIGINT" });
317317
mockProjectConfig.packagesInstalled = true;
318318
expect(ProjectConfig.setConfig).toHaveBeenCalledWith(mockProjectConfig);
@@ -331,7 +331,7 @@ describe("Unit - Package Manager", () => {
331331
await PackageManager.installPackages(true);
332332
expect(Util.log).toHaveBeenCalledTimes(1);
333333
expect(Util.log).toHaveBeenCalledWith(`Installing npm packages`);
334-
expect(Util.execSync).toHaveBeenCalledWith(`npm install --quiet`,
334+
expect(Util.execSync).toHaveBeenCalledWith(`npm install --force --quiet`,
335335
{ stdio: ["inherit"], killSignal: "SIGINT" });
336336
expect(process.exit).toHaveBeenCalled();
337337
expect(ProjectConfig.setConfig).toHaveBeenCalledTimes(0);

spec/unit/upgrade-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe("Unit - Upgrade command", () => {
130130
upgradeIgniteUIPackagesSpy.and.returnValue(Promise.resolve(true));
131131
await upgradeCmd.handler({ skipInstall: false, _: ["upgrade"], $0: "upgrade" });
132132
expect(mockProjTemplate.upgradeIgniteUIPackages).toHaveBeenCalledTimes(3);
133-
expect(Util.execSync).toHaveBeenCalledWith("npm install --quiet");
133+
expect(Util.execSync).toHaveBeenCalledWith("npm install --force --quiet");
134134
});
135135

136136
it("Logs error for not supported framework", async () => {

0 commit comments

Comments
 (0)