I’m trying to write some specs for a package and I’m running:
beforeEach -> ... waitsForPromise -> atom.packages.activatePackage('jekyll')
and its failing every test with
timeout: timed out after 5000 msec waiting for something to happen.
I added another test to check if the package was loaded
it 'should be in the packages list', -> expect(atom.packages.loadedPackages["jekyll"]).toBeDefined()
Which fails with
Expected undefined to be defined.
I’ve had a look at a few other packages and can’t workout how they are making thier package avliable in the specs
The complete spec file is at https://gist.github.com/Arcath/cb6d9a699abb6e59c3a4