From 7987a09b2956b367caacc60ff7cdcb91429811e8 Mon Sep 17 00:00:00 2001 From: Michael Padon Date: Wed, 10 Apr 2019 14:18:17 -0500 Subject: [PATCH] Fix broken test --- src/commands/snapshot.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/snapshot.ts b/src/commands/snapshot.ts index cacfa8a8..8c7e3ca9 100644 --- a/src/commands/snapshot.ts +++ b/src/commands/snapshot.ts @@ -30,6 +30,7 @@ export default class Snapshot extends PercyCommand { 'ignore-folders': flags.string({ char: 'i', description: 'Comma-seperated string of folders to ignore. Ex: Tmp,_secrets,node_modules', + default: '', }), 'widths': flags.string({ char: 'w', @@ -74,7 +75,7 @@ export default class Snapshot extends PercyCommand { if (!this.percyWillRun()) { this.exit(0) } const widths = rawWidths.split(',').map(Number) - const ignoreFolders = rawIgnoreFolders.split(',') + const ignoreFolders = rawIgnoreFolders ? rawIgnoreFolders.split(',') : undefined // start the agent service await this.agentService.start({port, networkIdleTimeout})