Skip to content

Commit 6f8cb9a

Browse files
committed
test: 💍 fix tests mock
1 parent 303498a commit 6f8cb9a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/cli/__tests__/commands/generate/generate.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jest.mock("utils/spinner", () => ({
3232
})),
3333
}));
3434
jest.mock("utils/logger", () => ({ logger: { info: jest.fn(), error: jest.fn(), log: jest.fn() } }));
35-
jest.mock("fs-extra", () => ({ existsSync: jest.fn(() => false) }));
3635
jest.mock("@inquirer/prompts", () => ({
3736
input: jest.fn(),
3837
select: jest.fn(),
@@ -55,8 +54,6 @@ describe("cli generate command", () => {
5554
});
5655

5756
it("bypasses prompts and generates when params are provided", async () => {
58-
(fs.existsSync as jest.Mock).mockReturnValue(false);
59-
6057
process.argv = [
6158
"/usr/local/bin/node",
6259
"cli",
@@ -85,8 +82,6 @@ describe("cli generate command", () => {
8582
});
8683

8784
it("handles invalid params by displaying error", async () => {
88-
(fs.existsSync as jest.Mock).mockReturnValue(false);
89-
9085
process.argv = [
9186
"/usr/local/bin/node",
9287
"cli",

0 commit comments

Comments
 (0)