       snippetsModule = null
 
       waitsForPromise ->
+        atom.packages.activatePackage(path.join(__dirname, 'fixtures', 'language-test'))
+
+      waitsForPromise ->
         atom.packages.activatePackage('snippets').then (p) ->
           snippetsModule = p.mainModule
           return unless snippetsModule.provideSnippets().getUnparsedSnippets?
 
           SnippetsProvider =
             getSnippets: -> snippetsModule.provideSnippets().getUnparsedSnippets()
-
-      waitsForPromise ->
-        atom.packages.activatePackage(path.join(__dirname, 'fixtures', 'language-test'))
 
       waitsFor 'snippets to load', -> snippetsModule.provideSnippets().bundledSnippetsLoaded()
 

    shouldRunScopeTest = parseFloat(atom.getVersion()) >= 1.33

    waitsForPromise ->
      atom.packages.activatePackage('snippets').then (p) ->
        snippetsModule = p.mainModule
        return unless snippetsModule.provideSnippets().getUnparsedSnippets?

        SnippetsProvider =
          getSnippets: -> snippetsModule.provideSnippets().getUnparsedSnippets()

    waitsForPromise ->
      atom.packages.activatePackage(path.join(__dirname, 'fixtures', 'language-test'))

    waitsFor 'snippets to load', -> snippetsModule.provideSnippets().bundledSnippetsLoaded()



      beforeEach ->
        waitsForPromise ->
          atom.packages.activatePackage(path.join(__dirname, 'fixtures', 'language-test'))

        waitsForPromise ->
          atom.packages.activatePackage('snippets').then (p) ->
            snippetsModule = p.mainModule
            return unless snippetsModule.provideSnippets().getUnparsedSnippets?
