diff options
author | 2023-09-12 16:49:50 -0700 | |
---|---|---|
committer | 2023-09-12 16:49:50 -0700 | |
commit | 9f28603013d568bdcee0429b3771e89958a19f98 (patch) | |
tree | dc050082f3c60dae142af3377513ab17a8434fde | |
parent | b1bd93bffcb6c74168fbc05b87dbc11cf2c8b334 (diff) | |
download | bun-9f28603013d568bdcee0429b3771e89958a19f98.tar.gz bun-9f28603013d568bdcee0429b3771e89958a19f98.tar.zst bun-9f28603013d568bdcee0429b3771e89958a19f98.zip |
check positionals lenciro/fix-test-command
-rw-r--r-- | src/cli/test_command.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/test_command.zig b/src/cli/test_command.zig index 75ac87e5d..04327960b 100644 --- a/src/cli/test_command.zig +++ b/src/cli/test_command.zig @@ -669,7 +669,7 @@ pub const TestCommand = struct { .dirs_to_scan = Scanner.Fifo.init(ctx.allocator), .options = &vm.bundler.options, .fs = vm.bundler.fs, - .filter_names = ctx.positionals[1..], + .filter_names = if (ctx.positionals.len > 0) ctx.positionals[1..] else ctx.positionals, .results = std.ArrayList(PathString).init(ctx.allocator), }; const dir_to_scan = brk: { |