Require a Directory of Elixir files shorthand
E.g. if you want to require test helpers from a directory:
Enum.each(Path.wildcard(Path.expand("./test/helpers/**/*.ex")), &Code.require_file/1)
might come in handy.
Written by Beat
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Elixir
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#