mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build(docs-infra): do not error if suites are ignored (#43431)
Adding suites to the `IGNORED_EXAMPLES` array currently results in an runtime exception because later when ignored examples are printed to stdout, a non-existent variable is referenced back from when there were examples disabled due to the Ivy migration. This commit fixes the logic. PR Close #43431
This commit is contained in:
committed by
Dylan Hunn
parent
46933d8c87
commit
72c12653e1
@@ -311,11 +311,10 @@ function runE2eTestsCLI(appDir, outputFile, bufferOutput, port) {
|
||||
function reportStatus(status, outputFile) {
|
||||
let log = [''];
|
||||
|
||||
log.push('Suites ignored due to legacy guides:');
|
||||
IGNORED_EXAMPLES.filter(example => !fixmeIvyExamples.find(ex => ex.startsWith(example)))
|
||||
.forEach(function(val) {
|
||||
log.push(' ' + val);
|
||||
});
|
||||
log.push('Suites ignored:');
|
||||
IGNORED_EXAMPLES.forEach(function(val) {
|
||||
log.push(' ' + val);
|
||||
});
|
||||
|
||||
log.push('');
|
||||
log.push('Suites passed:');
|
||||
|
||||
Reference in New Issue
Block a user