Skip to content

Commit b2b5af0

Browse files
wait for exit
1 parent 38bf162 commit b2b5af0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/capacitor/vitest.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ class CapacitorBrowserProvider implements BrowserProvider {
102102
// The process to run the Capacitor app will end once the app starts,
103103
// we don't keep track of it, but we do fail if the command failed.
104104
await new Promise<void>((resolve, reject) => {
105-
app.once('spawn', () => resolve());
105+
app.once('exit', () => resolve());
106106
app.once('error', reject);
107107
});
108+
109+
console.log('Remote browser should be open');
108110
}
109111

110112
async close() {}

0 commit comments

Comments
 (0)