var load = require('./load')
var filter = require('./filter')
var compact = require('./compact')

module.exports = function (criteria, cwd) {
  return compact(
    filter(
      load(criteria.glob, cwd),
      criteria,
      cwd
    )
  )
}

var load = require('./load')
var filter = require('./filter')
var compact = require('./compact')
var _ = require('lodash')

module.exports = function (criteria, cwd) {
  return compact(_.flatten(_.map(criteria.testFiles, function (fileCriteria) {
    return filter(
      load(fileCriteria.file, cwd),
      fileCriteria,
      cwd
    )
  })))
}

Update modules() to allow existing tests to pass.
Update modules() to allow existing tests to pass.
