example/webpack.config.js
function getEntryPoints(globPattern) {
    var testFiles = glob.sync(globPattern);
    var entryPoints = {};
    testFiles.forEach(function(file) {
        entryPoints[file.replace(/\.js$/, '')] = './' + file;
    });
    return entryPoints;
}
function getEntryPoints(globPattern) {
    var testFiles = glob.sync(globPattern);
    var entryPoints = {};
    testFiles.forEach(function(file) {
        entryPoints[file.replace(/\.js$/, '')] = './' + file;
    });
    return entryPoints;
}
function getEntryPoints ( globPattern ) { var testFiles = glob . sync ( globPattern ) ; var entryPoints = { } ; testFiles . forEach ( function ( file ) { entryPoints [ file . replace ( / \.js$ / , '' ) ] = './' + file ; } ) ; return entryPoints ; }
Given a glob pattern returns the matched paths as an entry point object for Webpack.
@param  {String} globPattern A glob pattern to match tests.
@return {Object}             Key value pairs, keyed on filepath.
Given a glob pattern returns the matched paths as an entry point object for Webpack .