     else
       'stylesheet'
     @minifier = minifiers.filter((minifier) => minifier.type is @type)[0]
-    @isTestFile = @path in findTestFiles @config
     Object.freeze this
 
   # Private: Collect content from a list of files and wrap it with
   # require.js module definition if needed.
   # Returns string.
-  _join: (files, callback) ->
+  _join: (files) ->
     debug "Joining files '#{files.map((file) -> file.path).join(', ')}'
  to '#{@path}'"
-    requireFiles = => loadTestFiles files, @config._normalized.conventions.tests
     joined = files.map((file) -> file.cache.data).join('')
-    process.nextTick =>
-      if @type is 'javascript'
-        data = @config._normalized.modules.definition(@path, joined) + joined
-        callback null, (if @isTestFile then data + requireFiles() else data)
-      else
-        callback null, joined
+    if @type is 'javascript'
+      @config._normalized.modules.definition(@path, joined) + joined
+    else
+      joined
 
   # Private: minify data.
   #

  #
  # Returns nothing.
  write: (callback) ->
    @_join (sort @sourceFiles, @config), (error, joined) =>
      return callback error if error?
      @_minify joined, (error, data) =>
        return callback error if error?
        common.writeFile @path, data, callback

  sortByConfig(paths, order).map (path) ->
    indexes[path]

# File which is generated by brunch from other files.
module.exports = class GeneratedFile
  #
