Skip to content

Commit 22dc288

Browse files
committed
test(android): verify resolved relaunch runner identity
1 parent 0a350df commit 22dc288

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/platform-android/src/lifecycle.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,16 @@ test.each([
151151
['settings', 'com.vendor.settings'],
152152
['com.example.app', 'com.example.app'],
153153
])('Android relaunch of %s closes its resolved package %s', async (target, appBundleId) => {
154-
const { calls, lifecycle } = createLifecycle({ openedAppBundleId: appBundleId });
154+
const { calls, interactorResolutions, lifecycle } = createLifecycle({
155+
openedAppBundleId: appBundleId,
156+
});
155157

156158
const outcome = await lifecycle.openApplication(
157159
openInput({ target, positionals: [target], appBundleId, relaunch: true }),
158160
);
159161

160162
expect(calls.slice(0, 2)).toEqual([`close:${appBundleId}`, `open:${target}`]);
163+
expect(new Set(interactorResolutions)).toEqual(new Set([appBundleId]));
161164
expect(outcome.appBundleId).toBe(appBundleId);
162165
});
163166

0 commit comments

Comments
 (0)