diff --git a/src/shell/MountedMiniapp.test.tsx b/src/shell/MountedMiniapp.test.tsx index cd22d8d..cb81509 100644 --- a/src/shell/MountedMiniapp.test.tsx +++ b/src/shell/MountedMiniapp.test.tsx @@ -21,6 +21,12 @@ beforeEach(async () => { indexedDB.deleteDatabase(db.name); db.close(); await db.open(); + // A prior test's mounted mini-app can still have a fire-and-forget + // window.commons.eventlog.append(...)/getPublicKey() in flight after the DB + // is wiped here; seeding an identity means that late call resolves against + // the fresh DB instead of surfacing an unhandled IdentityMissingError that + // flips the suite's exit code. Each test's own init() stays idempotent. + await init(); delete window.commons; });