test(shorebird_cli): use shorebird create in integration tests (#3176)

This commit is contained in:
Felix Angelov
2025-06-16 18:09:04 -05:00
committed by GitHub
parent 10c11eb53a
commit 4fd24fe578
@@ -94,22 +94,15 @@ void main() {
var cwd = subDirWithSpace.path;
// Create the default flutter counter app
logger.info('running `flutter create $testAppName` in $cwd');
logger.info('running `shorebird create $testAppName` in $cwd');
final createAppResult = runCommand(
'flutter create $testAppName',
'shorebird create $testAppName',
workingDirectory: cwd,
);
expect(createAppResult.exitCode, equals(0));
cwd = p.join(cwd, testAppName);
// Initialize Shorebird
final initShorebirdResult = runCommand(
'shorebird init --verbose',
workingDirectory: cwd,
);
expect(initShorebirdResult.exitCode, equals(0));
final shorebirdYamlPath = p.join(cwd, 'shorebird.yaml');
final shorebirdYamlText = File(shorebirdYamlPath).readAsStringSync();
final shorebirdYaml = checkedYamlDecode(