I'm working on a npm module that return content of folders.
I'm trying to test all possible use cases, and I want my tests to run on Travis.
I know git cannot handle empty folders, as described on this SO question, we typically have to put hidden files to store semi-empty folders on git.
But if I put an empty file in my folder, I'm testing a different use case, so I cannot follow this pattern. And neither I cannot run a script on Travis to create an empty folder, because the test would fail on my local machine.
Have you ever found yourself in a similar situation? How do you suggest me to handle this situation?
EDIT: I'm thinking to just add a files in empty folders, and to delete it at start of my test, but could be easy to do if someone knows a smarter way to do this. Deletion of placeholder files is a little intricated, because at each test run on my development machine, they appear as an unstaged edit on my git status...