 pathwatcher = require 'pathwatcher'
 RootView = require 'root-view'
 Git = require 'git'
+clipboard = require 'clipboard'
 requireStylesheet "jasmine"
 fixturePackagesPath = fsUtils.resolveOnLoadPath('fixtures/packages')
 config.packageDirPaths.unshift(fixturePackagesPath)


  window.resetTimeouts()
  atom.packageStates = {}
  spyOn(atom, 'getSavedWindowState').andReturn(null)
  $native.setWindowState('')
  syntax.clearGrammarOverrides()
  syntax.clearProperties()


  spyOn(TokenizedBuffer.prototype, "tokenizeInBackground").andCallFake -> @tokenizeNextChunk()

  pasteboardContent = 'initial pasteboard content'
  spyOn(clipboard, 'writeText').andCallFake (text) -> pasteboardContent = text
  spyOn(clipboard, 'readText').andCallFake -> pasteboardContent

  addCustomMatchers(this)

