Skip to content

Commit 5cafd44

Browse files
kapunahelewongmhevery
authored andcommitted
fix(docs-infra): fix filtering in run-example-e2e.js (angular#28663)
PR Close angular#28663
1 parent cb0a8b5 commit 5cafd44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aio/tools/examples/run-example-e2e.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ function getE2eSpecs(basePath, filter) {
325325
// Find all e2e specs in a given example folder.
326326
function getE2eSpecsFor(basePath, specFile, filter) {
327327
// Only get spec file at the example root.
328-
const e2eSpecGlob = `${filter ? '*' + filter + '*' : '*'}/${specFile}`;
328+
const e2eSpecGlob = `${filter ? `*${filter}*` : '*'}/${specFile}`;
329329
return globby(e2eSpecGlob, {cwd: basePath, nodir: true})
330330
.then(
331331
paths => paths.filter(file => !IGNORED_EXAMPLES.some(ignored => file.startsWith(ignored)))

0 commit comments

Comments
 (0)