cucumber
Version:
The official JavaScript implementation of Cucumber.
12 lines (10 loc) • 427 B
JavaScript
var SupportCodePathExpander = {
expandPaths: function expandPaths(paths, extensions) {
var Cucumber = require('../../../cucumber');
var PathExpander = Cucumber.Cli.ArgumentParser.PathExpander;
var regexp = new RegExp('\\.(' + extensions.join('|') + ')$');
var expandedPaths = PathExpander.expandPathsWithRegexp(paths, regexp);
return expandedPaths;
}
};
module.exports = SupportCodePathExpander;