fix(bazel): protractor rule should include *.e2e-spec.js (#25701)
PR Close #25701
This commit is contained in:
parent
b06f1c0087
commit
3809e0fcae
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue