class RSpec::Core::Example

Example is the class that represents a test case

def set_exception(exception)

trunk-ignore(rubocop/Naming/AccessorMethodName)
decide if we want to fail the test or not
We need to override this to allow us to capture the exception and then
RSpec uses the existance of an exception to determine if the test failed
def set_exception(exception)
  # TODO: this is where we'll need to override the result once the logic is ready
  # trunk-ignore(rubocop/Lint/LiteralAsCondition)
  if true
    set_exception_core(exception)
  else
    # monitor the override in the metadata
    metadata[:quarantined_exception] = exception
    nil
  end
end