cucumber
Version:
The official JavaScript implementation of Cucumber.
12 lines (11 loc) • 528 B
JavaScript
var SupportCodePathExpander = {
expandPaths: function expandPaths(paths) {
var Cucumber = require('../../../cucumber');
var CoffeeScript = require('coffee-script');
var PathExpander = Cucumber.Cli.ArgumentParser.PathExpander;
var expandedPaths = PathExpander.expandPathsWithRegexp(paths, SupportCodePathExpander.SUPPORT_CODE_FILES_IN_DIR_REGEXP);
return expandedPaths;
}
};
SupportCodePathExpander.SUPPORT_CODE_FILES_IN_DIR_REGEXP = /\.(js|coffee)$/;
module.exports = SupportCodePathExpander;