 
   describe "when the package contains incompatible native modules", ->
     beforeEach ->
+      atom.packages.devMode = false
       mockLocalStorage()
+
+    afterEach ->
+      atom.packages.devMode = true
 
     it "does not activate it", ->
       packagePath = atom.project.getDirectories()[0].resolve('packages/package-with-incompatible-native-module')


  describe "::rebuild()", ->
    beforeEach ->
      mockLocalStorage()

    it "returns a promise resolving to the results of `apm rebuild`", ->
      packagePath = atom.project.getDirectories()[0]?.resolve('packages/package-with-index')

      keymapManager: atom.keymaps, commandRegistry: atom.command,
      grammarRegistry: atom.grammars, themeManager: atom.themes,
      menuManager: atom.menu, contextMenuManager: atom.contextMenu,
      deserializerManager: atom.deserializers, viewRegistry: atom.views
    )

  buildPackage = (packagePath) -> build(Package, packagePath)
