Skip to content

Commit 68c2a4a

Browse files
committed
Set flags before paths
1 parent 2daaee7 commit 68c2a4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ export async function specs(argv: string[], config: Config) {
307307
path,
308308
args(
309309
"watch",
310-
defaultArgs,
311310
test.config && ["--config", test.config],
312-
test.dir && ["--dir", test.dir]
311+
test.dir && ["--dir", test.dir],
312+
defaultArgs
313313
),
314314
{
315315
name: "vitest watch",
@@ -323,9 +323,9 @@ export async function specs(argv: string[], config: Config) {
323323
await PATHS.vitest(),
324324
args(
325325
"run",
326-
defaultArgs,
327326
test.config && ["--config", test.config],
328-
test.dir && ["--dir", test.dir]
327+
test.dir && ["--dir", test.dir],
328+
defaultArgs
329329
),
330330
{
331331
name: "vitest run",

0 commit comments

Comments
 (0)