@@ -42,7 +42,7 @@ templates:
42
42
) ;
43
43
44
44
expect ( stdout ) . to . include ( "Validation successful" ) ;
45
- } ) . timeout ( 10000 ) ;
45
+ } ) . timeout ( 20000 ) ;
46
46
47
47
it ( "should report validation errors via npx command" , async ( ) => {
48
48
const template = `
@@ -67,7 +67,7 @@ templates:
67
67
} catch ( error ) {
68
68
expect ( error . stdout ) . to . include ( "Expected title" ) ;
69
69
}
70
- } ) . timeout ( 10000 ) ;
70
+ } ) . timeout ( 20000 ) ;
71
71
72
72
it ( "should show help message with --help flag" , async ( ) => {
73
73
const { stdout } = await execAsync ( "npx . --help" ) ;
@@ -76,7 +76,7 @@ templates:
76
76
expect ( stdout ) . to . include ( "--file" ) ;
77
77
expect ( stdout ) . to . include ( "--template-path" ) ;
78
78
expect ( stdout ) . to . include ( "--template" ) ;
79
- } ) . timeout ( 10000 ) ;
79
+ } ) . timeout ( 20000 ) ;
80
80
81
81
it ( "should fail with meaningful error for missing arguments" , async ( ) => {
82
82
try {
@@ -85,7 +85,7 @@ templates:
85
85
} catch ( error ) {
86
86
expect ( error . stderr ) . to . include ( "Options" ) ;
87
87
}
88
- } ) . timeout ( 10000 ) ;
88
+ } ) . timeout ( 20000 ) ;
89
89
90
90
it ( "should handle invalid template path gracefully" , async ( ) => {
91
91
try {
@@ -97,7 +97,7 @@ templates:
97
97
expect ( error . stderr ) . to . include ( "Template file not found" ) ;
98
98
expect ( error . code ) . to . equal ( 1 ) ;
99
99
}
100
- } ) . timeout ( 10000 ) ;
100
+ } ) . timeout ( 20000 ) ;
101
101
102
102
it ( "should handle malformed template file" , async ( ) => {
103
103
fs . writeFileSync ( templateFile , "invalid: yaml: content:" ) ;
@@ -110,5 +110,5 @@ templates:
110
110
expect ( error . stderr ) . to . include ( "Failed to load and validate templates" ) ;
111
111
expect ( error . code ) . to . equal ( 1 ) ;
112
112
}
113
- } ) . timeout ( 10000 ) ;
113
+ } ) . timeout ( 20000 ) ;
114
114
} ) ;
0 commit comments