fix(bazel): protractor rule should include *.e2e-spec.js (#25701)

PR Close #25701
This commit is contained in:
Alex Eagle 2018-08-28 09:19:59 -07:00 committed by Misko Hevery
parent b06f1c0087
commit 3809e0fcae
1 changed files with 1 additions and 3 deletions

View File

@ -62,9 +62,7 @@ if (onPreparePath) {
// ts_web_test_suite & rules_webtesting WEB_TEST_METADATA attributes
setConf(conf, 'framework', 'jasmine2', 'is set to jasmine2');
const specs = [TMPL_specs]
.map(s => require.resolve(s))
.filter(s => s.endsWith('.spec.js') || s.endsWith('.test.js'));
const specs = [TMPL_specs].map(s => require.resolve(s)).filter(s => /\b(spec|test)\.js$/.test(s));
setConf(conf, 'specs', specs, 'are determined by the srcs and deps attribute');