fix(shorebird_cli): shorebird init flavor detection progress (#550)
This commit is contained in:
@@ -74,7 +74,7 @@ If you want to reinitialize Shorebird, please run "shorebird init --force".''');
|
||||
productFlavors = await extractProductFlavors(Directory.current.path);
|
||||
detectFlavorsProgress.complete();
|
||||
} catch (error) {
|
||||
detectFlavorsProgress.fail();
|
||||
detectFlavorsProgress.complete();
|
||||
logger.detail('Unable to extract product flavors: $error');
|
||||
}
|
||||
|
||||
|
||||
@@ -328,6 +328,8 @@ If you want to reinitialize Shorebird, please run "shorebird init --force".''',
|
||||
'Unable to extract product flavors: Exception: error\noops',
|
||||
),
|
||||
).called(1);
|
||||
verify(() => progress.complete()).called(1);
|
||||
verifyNever(() => progress.fail(any()));
|
||||
expect(exitCode, ExitCode.success.code);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user