Files
AutistMask/tests/support
sneak 9fb15302eb
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
test: the popup boot in the jest suite sends no request to the internet (closes #559)
bootPopup() in tests/support/popupBoot.js mocked the three shared
modules that reach the network, but a boot onto the transaction screen
still asked Blockscout for its transaction, and a boot onto the
confirmation screen looked the recipient up on Etherscan, both through
the real fetch(). tests/persistedFieldContract.test.js boots onto both,
so every run sent those requests and logged their answers after its
tests had finished. bootPopup() now replaces fetch() with the throwing
stub the rest of the suite uses, and cleanupPopup() puts it back.
tests/popupBoot.test.js checks that both requests reach the stub.

Model: opus-5-5
2026-10-19 05:23:14 +00:00
..