Require modules inside test folder

I have a module in the test folder. but when I try to require it on iex. It gives an error:

   module cannot be loaded or couldn't be found.

Every other module outside the test folder is loading fine on iex but not the one inside test folder

Any suggesstions?

Make sure the path containing the module is in elixirc_paths in your mix.exs

1 Like