File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ const exampleTaskOverride = task("example2")
26
26
. addVariadicArgument ( {
27
27
name : "testFiles" ,
28
28
description : "An optional list of files to test" ,
29
- // defaultValue: [],
29
+ defaultValue : [ ] ,
30
30
} )
31
- . addOption ( {
31
+ . addFlag ( {
32
32
name : "noCompile" ,
33
33
description : "Don't compile before running this task" ,
34
34
} )
@@ -43,6 +43,7 @@ const exampleTaskOverride = task("example2")
43
43
. addOption ( {
44
44
name : "grep" ,
45
45
description : "Only run tests matching the given string or regexp" ,
46
+ defaultValue : "" ,
46
47
} )
47
48
. build ( ) ;
48
49
@@ -52,7 +53,7 @@ const testTask = task("test", "Runs mocha tests")
52
53
description : "An optional list of files to test" ,
53
54
// defaultValue: [],
54
55
} )
55
- . addOption ( {
56
+ . addFlag ( {
56
57
name : "noCompile" ,
57
58
description : "Don't compile before running this task" ,
58
59
} )
@@ -67,6 +68,7 @@ const testTask = task("test", "Runs mocha tests")
67
68
. addOption ( {
68
69
name : "grep" ,
69
70
description : "Only run tests matching the given string or regexp" ,
71
+ defaultValue : "" ,
70
72
} )
71
73
. setAction ( import . meta. resolve ( "./tasks/non-existing.ts" ) )
72
74
. build ( ) ;
You can’t perform that action at this time.
0 commit comments