analytics/test/test_helper.exs

15 lines
510 B
Elixir
Raw Normal View History

2019-09-02 14:29:19 +03:00
{:ok, _} = Application.ensure_all_started(:ex_machina)
2022-09-23 13:22:43 +03:00
Mox.defmock(Plausible.HTTPClient.Mock, for: Plausible.HTTPClient.Interface)
Application.ensure_all_started(:double)
FunWithFlags.enable(:window_time_on_page)
2024-02-12 17:22:06 +03:00
FunWithFlags.enable(:shields)
2019-09-02 14:29:19 +03:00
Ecto.Adapters.SQL.Sandbox.mode(Plausible.Repo, :manual)
if Mix.env() == :small_test do
IO.puts("Test mode: SMALL")
ExUnit.configure(exclude: [:slow, :full_build_only])
else
IO.puts("Test mode: FULL")
ExUnit.configure(exclude: [:slow, :small_build_only])
end