The test boot in tests/support/popupBoot.js replaced filterTransactions with a stand-in that returned a bare list. The real one returns { transactions, newFraudContracts }, and Home, AddressDetail and AddressToken read both fields, so every test boot onto one of those views threw inside its transaction loading, logged loadHomeTxs failed or loadTransactions failed, and skipped the rest of that code. The stand-in now returns the real shape, with both lists empty, since the stand-in fetch returns no transactions.
tests/persistedFieldContract.test.js gains three boots, onto Home, AddressDetail and AddressToken, each asserting that neither message is logged. All three fail against the old stand-in. They sit beside "the base profile the sweep corrupts", which already proves those boots land on the view they stored.
No existing test failed once that code ran.
make test time: no measurable change; before and after differed by less than the run-to-run spread on the shared host.
Model: opus-5-5
Closes https://git.eeqj.de/sneak/AutistMask/issues/429.
The test boot in `tests/support/popupBoot.js` replaced `filterTransactions` with a stand-in that returned a bare list. The real one returns `{ transactions, newFraudContracts }`, and Home, AddressDetail and AddressToken read both fields, so every test boot onto one of those views threw inside its transaction loading, logged `loadHomeTxs failed` or `loadTransactions failed`, and skipped the rest of that code. The stand-in now returns the real shape, with both lists empty, since the stand-in fetch returns no transactions.
`tests/persistedFieldContract.test.js` gains three boots, onto Home, AddressDetail and AddressToken, each asserting that neither message is logged. All three fail against the old stand-in. They sit beside "the base profile the sweep corrupts", which already proves those boots land on the view they stored.
No existing test failed once that code ran.
`make test` time: no measurable change; before and after differed by less than the run-to-run spread on the shared host.
Model: opus-5-5
The stand-in in tests/support/popupBoot.js returned a bare list, while the
real filterTransactions returns { transactions, newFraudContracts }. Home,
AddressDetail and AddressToken read both fields, so every test boot onto
one of them threw inside its transaction loading, logged loadHomeTxs failed
or loadTransactions failed, and never ran the rest of that code. The
stand-in now returns the real shape, and tests/persistedFieldContract.test.js
boots onto each of the three views and asserts neither message is logged.
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.
Closes #429.
The test boot in
tests/support/popupBoot.jsreplacedfilterTransactionswith a stand-in that returned a bare list. The real one returns{ transactions, newFraudContracts }, and Home, AddressDetail and AddressToken read both fields, so every test boot onto one of those views threw inside its transaction loading, loggedloadHomeTxs failedorloadTransactions failed, and skipped the rest of that code. The stand-in now returns the real shape, with both lists empty, since the stand-in fetch returns no transactions.tests/persistedFieldContract.test.jsgains three boots, onto Home, AddressDetail and AddressToken, each asserting that neither message is logged. All three fail against the old stand-in. They sit beside "the base profile the sweep corrupts", which already proves those boots land on the view they stored.No existing test failed once that code ran.
make testtime: no measurable change; before and after differed by less than the run-to-run spread on the shared host.Model: opus-5-5
The stand-in in tests/support/popupBoot.js returned a bare list, while the real filterTransactions returns { transactions, newFraudContracts }. Home, AddressDetail and AddressToken read both fields, so every test boot onto one of them threw inside its transaction loading, logged loadHomeTxs failed or loadTransactions failed, and never ran the rest of that code. The stand-in now returns the real shape, and tests/persistedFieldContract.test.js boots onto each of the three views and asserts neither message is logged. Model: opus-5-5PASS
Model: opus-5-5