2025/03/25分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Merge pull request #54798 from Edouard-chin/ec-actiontext-rollup
actiontext/package.json
の修正です。
不足していた、rollup-plugin-terser
をdev dependencyに追加しています。
Introduce ActiveSupport::Testing::ErrorReporterAssertions#capture_error_reports
activesupport/lib/active_support/testing/error_reporter_assertions.rb
の修正です。
block内から指定されたエラークラスにマッチしたエラーだけをreportするActiveSupport::Testing::ErrorReporterAssertions#capture_error_reports
を追加しています。
reports = capture_error_reports(IOError) do Rails.error.report(IOError.new("Oops")) # reportする Rails.error.report(IOError.new("Oh no")) # reportする Rails.error.report(StandardError.new) # reportしない end