diff --git a/src/cli/test_command.zig b/src/cli/test_command.zig index 840b5e8b28..d283d66665 100644 --- a/src/cli/test_command.zig +++ b/src/cli/test_command.zig @@ -1829,7 +1829,7 @@ pub const TestCommand = struct { // Count each file only once, regardless of repeat count reporter.summary().files += 1; - while (repeat_index <= repeat_count) : (repeat_index += 1) { + while (repeat_index < repeat_count) : (repeat_index += 1) { reporter.jest.current_file.set(file_title, file_prefix, repeat_count, repeat_index); var promise = try vm.loadEntryPointForTestRunner(file_path);