     {:ok, io_opts} = IOProxy.config()
 
     IOProxy.config(mute_err: false)
-    on_exit(fn -> IOProxy.config(Keyword.new(io_opts)) end)
+    GlobalBindings.load(%{site: %{base_url: "/test-site/"}})
+
+    on_exit(fn ->
+      IOProxy.config(Keyword.new(io_opts))
+      GlobalBindings.load(%{})
+    end)
   end
 
   setup do


    test "prints a warning when failed to open a browser" do
      Serum.DevServer.CommandHandler.Mock
      |> expect(:open_url, fn "http://localhost:8080" -> :error end)

      stderr =
        capture_io(:stderr, fn ->

  import Serum.DevServer.Prompt
  import Serum.TestHelper
  alias Serum.DevServer.Service
  alias Serum.GlobalBindings
  alias Serum.IOProxy

  @commands ~w(build help open quit)
