Skip to content
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

chore(ci): rename option #7875

Merged
merged 1 commit into from
Apr 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function exportToWebsite(options) {
/**
*
* @param {string[]} tests file paths
* @param {{debug?:boolean,recreate?:boolean,show?:boolean,filter?:boolean}} [options]
* @param {{debug?:boolean,recreate?:boolean,verbose?:boolean,filter?:boolean}} [options]
*/
function test(tests, options) {
options = options || {};
Expand All @@ -161,7 +161,7 @@ function test(tests, options) {
p.stdout.on('data', function (data) {
data = _.compact(data.toString().trim().split(/\n/));
data.forEach(line => {
if (clearLines > 0 && !options.show) {
if (clearLines > 0 && !options.verbose) {
process.stdout.write(ansiEscapes.cursorUp(1));
process.stdout.write(ansiEscapes.eraseDown);
}
Expand Down Expand Up @@ -321,7 +321,7 @@ program
.option('-a, --all', 'run all tests', false)
.option('-d, --debug', 'debug visual tests by overriding refs (golden images) in case of visual changes', false)
.option('-r, --recreate', 'recreate visual refs (golden images)', false)
.option('--show', 'show passing tests', false)
.option('-v, --verbose', 'log passing tests', false)
.option('-cc, --clear-cache', 'clear CLI test cache', false)
.action((options) => {
if (options.clearCache) {
Expand Down