     temporaryFilePath = null
 
     beforeEach ->
-      temporaryFilePath = fs.join(require.resolve('fixtures/tree-view'), 'temporary')
+      temporaryFilePath = fs.join(fs.resolveOnLoadPath('fixtures/tree-view'), 'temporary')
       if fs.exists(temporaryFilePath)
         fs.remove(temporaryFilePath)
         waits(20)


    beforeEach ->
      config.set "core.hideGitIgnoredFiles", false
      ignoreFile = fs.join(require.resolve('fixtures/tree-view'), '.gitignore')
      fs.write(ignoreFile, 'tree-view.js')
      git.getPathStatus(ignoreFile)

      newFile = fs.join(require.resolve('fixtures/tree-view/dir2'), 'new2')
      fs.write(newFile, '')
      git.getPathStatus(newFile)

      modifiedFile = fs.join(require.resolve('fixtures/tree-view/dir1'), 'file1')
      originalFileContent = fs.read(modifiedFile)
      fs.write modifiedFile, 'ch ch changes'
      git.getPathStatus(modifiedFile)

    [ignoreFile] = []

    beforeEach ->
      ignoreFile = fs.join(fs.resolveOnLoadPath('fixtures/tree-view'), '.gitignore')
      fs.write(ignoreFile, 'tree-view.js')
      config.set "core.hideGitIgnoredFiles", false

