Atom.project.path (cannot call path of undefined in test)


In a class of mine I reference atom.project.path. When I run my package tests I get the error ‘cannot call path of undefined’ and it points to that line.

Any ideas on why this is failing? Why isn’t atom.project available in my test?


Because the tests do not set everything up for performance reasons. Check out the whitespace package for examples of how to write Atom specs. Specifically: