Oban.testing isn't working

Hey guys,
I’m testing this module but it’s not working,

defmodule MyApp.ErrorReporter do
  alias MyApp.Reportable

  def handle_event([:oban, :job, :exception], _, %{attempt: attempt, worker: worker} = meta, _) do
context = Map.take(meta.job, [:id, :args, :queue, :worker])

    if Reportable.reportable?(worker_struct, meta.job.attempt) do
       Logger.error("Error", attempt: attempt, error: meta.error, context: context)
    end
  end

I need to simulate this Logger in the test and then implement the exception of this error.

Workers aren’t structs by default. Are you using defstruct in your worker definition?