This should probably be wrapped in existsSync. For me now, the tests are failing for some reason, and on the second run, it fails because the directory is already there.