Skip to content

Commit 0bbafc4

Browse files
committed
test runner
1 parent 16953b7 commit 0bbafc4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

internal/execute/tsctestrunner_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,21 @@ func getDiffForIncremental(incrementalSys *testSys, nonIncrementalSys *testSys)
160160
func (test *tscInput) getBaselineSubFolder() string {
161161
commandName := "tsc"
162162
if slices.ContainsFunc(test.commandLineArgs, func(arg string) bool {
163-
return arg == "--build" || arg == "-b"
163+
switch arg {
164+
case "-b", "--b", "-build", "--build":
165+
return true
166+
}
167+
return false
164168
}) {
165169
commandName = "tsbuild"
166170
}
167171
w := ""
168172
if slices.ContainsFunc(test.commandLineArgs, func(arg string) bool {
169-
return arg == "--watch" || arg == "-w"
173+
switch arg {
174+
case "-w", "--w", "-watch", "--watch":
175+
return true
176+
}
177+
return false
170178
}) {
171179
w = "Watch"
172180
}

0 commit comments

Comments
 (0)