var modules = require('./modules')
var helper = require('./helper')

module.exports = function (config) {
  return {
    modules: modules(config.criteria, config.cwd),
    helper: helper(config.helperPath, config.cwd)
  }
}

var modules = require('./modules')
var helper = require('./helper')

module.exports = function (config) {
  return {
    helper: helper(config.helperPath, config.cwd),
    modules: modules(config.criteria, config.cwd)
  }
}

Fix bug introduced during refactor
Fix bug introduced during refactor

Previously, the helper was loaded before the modules, which is also
understandably necessary for any test suites that use a 
require.extensions registration hook (eg `require('babel-core/register)`