bonfire-app/.iex.exs
Mayel de Borniol 25de5dbe96 clean
2022-03-16 17:30:58 +13:00

33 lines
773 B
Elixir
Executable file

# if Code.ensure_loaded?(ExSync) && function_exported?(ExSync, :register_group_leader, 0) do
# ExSync.register_group_leader()
# end
alias Bonfire.Repo
alias Bonfire.Data
alias Bonfire.Me
alias Bonfire.Social
alias Bonfire.Common
use Common.Utils
import Bonfire.Me.Fake
require Logger
if module_enabled?(IExWatchTests) do
# to run tests from iex
# Code.compiler_options(ignore_module_conflict: true)
# Code.compile_file("~/.iex/iex_watch_tests.exs", File.cwd!())
unless GenServer.whereis(IExWatchTests) do
{:ok, pid} = IExWatchTests.start_link()
# Process will not exit when the iex goes out
Process.unlink(pid)
end
IExWatchTests.Helpers.ready
else
Logger.info("IExWatchTests is not available")
end
import_if_enabled IExWatchTests.Helpers