exclude =
  [:skip] ++ if(Code.ensure_loaded?(:json), do: [], else: [:requires_json])

ExUnit.configure(exclude: exclude ++ ExUnit.configuration()[:exclude])
ExUnit.start()
Application.ensure_all_started(:bypass)

# Set up Mox for HTTP mocking in OAuth tests
Mox.defmock(Hex.HTTP.Mock, for: :mix_hex_http)

File.rm_rf!(HexTest.Case.tmp_path())
File.mkdir_p!(HexTest.Case.tmp_path())
HexTest.Case.init_reset_state()
