Skip to content

Commit 1b3dc50

Browse files
committed
feat(ng): add test subcommand and options
1 parent aef52ac commit 1b3dc50

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

src/ng.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,40 @@ const completionSpec: Fig.Spec = {
125125
},
126126
],
127127
},
128+
{
129+
name: "test",
130+
description: "Run tests",
131+
options: [
132+
{
133+
name: "--watch",
134+
description: "Watch for file changes",
135+
args: {
136+
name: "boolean",
137+
suggestions: ["true", "false"],
138+
},
139+
},
140+
{
141+
name: "--code-coverage",
142+
description: "Generate code coverage report",
143+
},
144+
{
145+
name: "--browsers",
146+
description: "Browsers to test against",
147+
args: {
148+
name: "browser",
149+
suggestions: ["Chrome", "ChromeHeadless"],
150+
},
151+
},
152+
{
153+
name: "--include",
154+
description: "Path or files of the tests",
155+
args: {
156+
name: "filepaths",
157+
template: "filepaths",
158+
},
159+
},
160+
],
161+
},
128162
{
129163
name: "version",
130164
description: "View your Angular CLI version (update for Angular 14+)",

0 commit comments

Comments
 (0)