-
Notifications
You must be signed in to change notification settings - Fork 650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple specs folders in affected task. #13295
Conversation
getAffectedFilesFrom(flattenFiles); | ||
}) | ||
.catch(function (error) { | ||
console.error(err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'err' is not defined no-undef
const flattenFiles = [].concat.apply([], files); | ||
getAffectedFilesFrom(flattenFiles); | ||
}) | ||
.catch(function (error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected error to be handled handle-callback-err
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error is handled by showing it in the console.
@@ -158,7 +164,17 @@ var main = function (testsFolder, replacements, modifiedFiles, filesRegex) { | |||
console.error(colors.red(reason)); | |||
process.exit(-1); | |||
}); | |||
}); | |||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary semicolon no-extra-semi
console.error(err); | ||
process.exit(1); | ||
} | ||
function promiseMap(xs, f) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space before function parentheses space-before-function-paren
This PR allows to configure multiple specs folders to take them into account while building the list of affected specs.