Added --warnings-as-errors to mix test but only when called by ex_check

This commit is contained in:
Kieran Eglin committed 2024-12-13 12:41:06 -08:00
1 parent 023f449dbe
commit 0be469dcb0
2 files changed
+4 -1

No files matched your search

+2
View File
@@ -10,6 +10,8 @@ Application.put_env(:pinchflat, :http_client, HTTPClientMock)
Mox.defmock(UserScriptRunnerMock, for: Pinchflat.Lifecycle.UserScripts.UserScriptCommandRunner)
Application.put_env(:pinchflat, :user_script_runner, UserScriptRunnerMock)
if System.get_env("EX_CHECK"), do: Code.put_compiler_option(:warnings_as_errors, true)
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Pinchflat.Repo, :manual)
Faker.start()