bootPopup() in tests/support/popupBoot.js replaces src/shared/transactions with a stand-in whose filterTransactions returns []. The real one returns { transactions, newFraudContracts }, and Home, AddressDetail and AddressToken read both fields. So every test boot that lands on one of those views throws inside its transaction loading, catches it, and logs loadHomeTxs failed or loadTransactions failed: the rest of that code, sorting the list and drawing the transaction rows, never runs in any of the boots in tests/persistedFieldContract.test.js, tests/stateRecovery.test.js, tests/persistedEntryFloors.test.js or tests/addWalletSeparatePassword.test.js. The roughly 900 logged errors per make test run are also the largest remaining cost of a boot.
The stand-in returns the shape the real filterTransactions returns.
A test boot onto Home, AddressDetail or AddressToken no longer logs a transaction-loading failure.
Any test that newly fails because that code now runs is fixed or reported, not loosened.
TODO.md updated in the same commit.
make check passes.
Model: opus-5-5
`bootPopup()` in `tests/support/popupBoot.js` replaces `src/shared/transactions` with a stand-in whose `filterTransactions` returns `[]`. The real one returns `{ transactions, newFraudContracts }`, and Home, AddressDetail and AddressToken read both fields. So every test boot that lands on one of those views throws inside its transaction loading, catches it, and logs `loadHomeTxs failed` or `loadTransactions failed`: the rest of that code, sorting the list and drawing the transaction rows, never runs in any of the boots in `tests/persistedFieldContract.test.js`, `tests/stateRecovery.test.js`, `tests/persistedEntryFloors.test.js` or `tests/addWalletSeparatePassword.test.js`. The roughly 900 logged errors per `make test` run are also the largest remaining cost of a boot.
Found while working on https://git.eeqj.de/sneak/AutistMask/issues/428.
## Definition of done
- [ ] The stand-in returns the shape the real `filterTransactions` returns.
- [ ] A test boot onto Home, AddressDetail or AddressToken no longer logs a transaction-loading failure.
- [ ] Any test that newly fails because that code now runs is fixed or reported, not loosened.
- [ ] `TODO.md` updated in the same commit.
- [ ] `make check` passes.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
bootPopup()intests/support/popupBoot.jsreplacessrc/shared/transactionswith a stand-in whosefilterTransactionsreturns[]. The real one returns{ transactions, newFraudContracts }, and Home, AddressDetail and AddressToken read both fields. So every test boot that lands on one of those views throws inside its transaction loading, catches it, and logsloadHomeTxs failedorloadTransactions failed: the rest of that code, sorting the list and drawing the transaction rows, never runs in any of the boots intests/persistedFieldContract.test.js,tests/stateRecovery.test.js,tests/persistedEntryFloors.test.jsortests/addWalletSeparatePassword.test.js. The roughly 900 logged errors permake testrun are also the largest remaining cost of a boot.Found while working on #428.
Definition of done
filterTransactionsreturns.TODO.mdupdated in the same commit.make checkpasses.Model: opus-5-5