diff --git a/lib/packwerk/formatters/default_offenses_formatter.rb b/lib/packwerk/formatters/default_offenses_formatter.rb index 6f12abaa3..b6b173ad5 100644 --- a/lib/packwerk/formatters/default_offenses_formatter.rb +++ b/lib/packwerk/formatters/default_offenses_formatter.rb @@ -23,7 +23,7 @@ def show_offenses(offenses) sig { override.params(offense_collection: OffenseCollection, file_set: T::Set[String]).returns(String) } def show_stale_violations(offense_collection, file_set) if offense_collection.stale_violations?(file_set) - "There were stale violations found, please run `packwerk update-todo`" + "There were stale violations found, please run `bin/packwerk update-todo`" else "No stale violations detected" end diff --git a/test/unit/packwerk/commands/check_command_test.rb b/test/unit/packwerk/commands/check_command_test.rb index 4ffc86a9c..e6dda5e9b 100644 --- a/test/unit/packwerk/commands/check_command_test.rb +++ b/test/unit/packwerk/commands/check_command_test.rb @@ -131,7 +131,7 @@ class CheckCommandTest < Minitest::Test 📦 Finished in \\d+\\.\\d+ seconds No offenses detected - There were stale violations found, please run `packwerk update-todo` + There were stale violations found, please run `bin/packwerk update-todo` EOS assert_match(/#{expected_output}/, out.string) @@ -238,7 +238,7 @@ class CheckCommandTest < Minitest::Test 📦 Finished in \\d+\\.\\d+ seconds No offenses detected - There were stale violations found, please run `packwerk update-todo` + There were stale violations found, please run `bin/packwerk update-todo` EOS assert_match(/#{expected_output}/, out.string) @@ -351,7 +351,7 @@ class CheckCommandTest < Minitest::Test 1 offense detected - There were stale violations found, please run `packwerk update-todo` + There were stale violations found, please run `bin/packwerk update-todo` EOS assert_match(/#{expected_output}/, out.string) @@ -390,7 +390,7 @@ class CheckCommandTest < Minitest::Test 📦 Finished in \\d+\\.\\d+ seconds No offenses detected - There were stale violations found, please run `packwerk update-todo` + There were stale violations found, please run `bin/packwerk update-todo` EOS assert_match(/#{expected_output}/, out.string)