Skip to content

Commit b3d507a

Browse files
authored
Update cli.test.js
1 parent 2cf658b commit b3d507a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cli.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ templates:
4242
);
4343

4444
expect(stdout).to.include("Validation successful");
45-
}).timeout(10000);
45+
}).timeout(20000);
4646

4747
it("should report validation errors via npx command", async () => {
4848
const template = `
@@ -67,7 +67,7 @@ templates:
6767
} catch (error) {
6868
expect(error.stdout).to.include("Expected title");
6969
}
70-
}).timeout(10000);
70+
}).timeout(20000);
7171

7272
it("should show help message with --help flag", async () => {
7373
const { stdout } = await execAsync("npx . --help");
@@ -76,7 +76,7 @@ templates:
7676
expect(stdout).to.include("--file");
7777
expect(stdout).to.include("--template-path");
7878
expect(stdout).to.include("--template");
79-
}).timeout(10000);
79+
}).timeout(20000);
8080

8181
it("should fail with meaningful error for missing arguments", async () => {
8282
try {
@@ -85,7 +85,7 @@ templates:
8585
} catch (error) {
8686
expect(error.stderr).to.include("Options");
8787
}
88-
}).timeout(10000);
88+
}).timeout(20000);
8989

9090
it("should handle invalid template path gracefully", async () => {
9191
try {
@@ -97,7 +97,7 @@ templates:
9797
expect(error.stderr).to.include("Template file not found");
9898
expect(error.code).to.equal(1);
9999
}
100-
}).timeout(10000);
100+
}).timeout(20000);
101101

102102
it("should handle malformed template file", async () => {
103103
fs.writeFileSync(templateFile, "invalid: yaml: content:");
@@ -110,5 +110,5 @@ templates:
110110
expect(error.stderr).to.include("Failed to load and validate templates");
111111
expect(error.code).to.equal(1);
112112
}
113-
}).timeout(10000);
113+
}).timeout(20000);
114114
});

0 commit comments

Comments
 (0)