Hello everyone, Elixir newbie here.
I wanted to include a file containing a mocked module. I found 3 ways of doing this:
-
Code.load_file
-
Adding the directory containing the file to the
elixirc_paths
list in the mix.exs -
Code.require_file
Is one way better than the other or is there another more idiomatic way?