Skip to content

Commit

Permalink
revert test
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire committed Jan 17, 2025
1 parent ae33557 commit dba26a4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ it("catches early core dependencies installation process errors", async () => {
// @ts-expect-error - Accessing protected property
expect(initProcess.context.installProcess).toBeTypeOf("object");

vi.stubGlobal("process", { ...process, off: vi.fn() });
vi.stubGlobal("process", { ...process, exit: vi.fn() });

const { stderr } = await watchStd(async () => {
// @ts-expect-error - Accessing protected property
Expand Down Expand Up @@ -75,7 +75,7 @@ it("catches early core dependencies installation process errors", async () => {
error: expect.any(String),
}),
);
expect(process.off).toHaveBeenCalledOnce();
expect(process.exit).toHaveBeenCalledOnce();
expect(stderr[0]).toMatch(/Dependency installation failed/);
});

Expand All @@ -95,7 +95,7 @@ it("appends repository selection to error message when core dependencies install
// @ts-expect-error - Accessing protected property
expect(initProcess.context.installProcess).toBeTypeOf("object");

vi.stubGlobal("process", { ...process, off: vi.fn() });
vi.stubGlobal("process", { ...process, exit: vi.fn() });

const { stderr } = await watchStd(async () => {
// @ts-expect-error - Accessing protected property
Expand Down

0 comments on commit dba26a4

Please sign in to comment.