Test helpers defined in their own files under the `test` folder not loaded; (and why ElixirLS ignores test_helper.exs contents?)

Check your mix.exs, the project/0 function should look like this:

def project do
  [
    # ...
    elixirc_paths: elixirc_paths(Mix.env()),
    # ...
  ]
end

and in the same file, there should be a private function elixirc_paths/1:

defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
5 Likes