diff --git a/packages/shorebird_cli/test/src/commands/patch_new/ios_patcher_test.dart b/packages/shorebird_cli/test/src/commands/patch_new/ios_patcher_test.dart index 2d1e7d86..723ca7b7 100644 --- a/packages/shorebird_cli/test/src/commands/patch_new/ios_patcher_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch_new/ios_patcher_test.dart @@ -483,8 +483,9 @@ void main() { final zipFile = invocation.namedArguments[#zipFile] as File; final outDir = invocation.namedArguments[#outputDirectory] as Directory; - File(p.join(outDir.path, '${p.basename(zipFile.path)}.zip')) - .createSync(); + File( + p.join(outDir.path, '${p.basename(zipFile.path)}.zip'), + ).createSync(); }); when(() => artifactManager.getXcarchiveDirectory()).thenReturn( Directory( diff --git a/packages/shorebird_cli/test/src/executables/patch_executable_test.dart b/packages/shorebird_cli/test/src/executables/patch_executable_test.dart index a660e33d..353067c9 100644 --- a/packages/shorebird_cli/test/src/executables/patch_executable_test.dart +++ b/packages/shorebird_cli/test/src/executables/patch_executable_test.dart @@ -54,8 +54,9 @@ void main() { cacheArtifactDirectory = Directory.systemTemp.createTempSync(); cache = MockCache(); - when(() => cache.getArtifactDirectory(any())) - .thenReturn(cacheArtifactDirectory); + when( + () => cache.getArtifactDirectory(any()), + ).thenReturn(cacheArtifactDirectory); when(() => cache.updateAll()).thenAnswer((_) async {}); }); @@ -64,8 +65,9 @@ void main() { final releaseArtifactFile = File( p.join(tmpDir.path, 'release_artifact'), )..createSync(recursive: true); - final patchArtifactFile = File(p.join(tmpDir.path, 'patch_artifact')) - ..createSync(recursive: true); + final patchArtifactFile = File( + p.join(tmpDir.path, 'patch_artifact'), + )..createSync(recursive: true); await runWithOverrides( () => patchExecutable.run( @@ -96,6 +98,14 @@ void main() { when(() => patchProcessResult.stderr).thenReturn(stderr); when(() => patchProcessResult.stdout).thenReturn(stdout); + when( + () => shorebirdProcess.run( + any(that: endsWith('patch')), + any(), + runInShell: any(named: 'runInShell'), + ), + ).thenAnswer((_) async => patchProcessResult); + await expectLater( () => runWithOverrides( () => patchExecutable.run(